Skip to content

Commit

Permalink
Add stdlib to the build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos committed Mar 22, 2023
1 parent 56d567a commit 3fc98a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ RUN adduser --disabled-password appuser

# Copy the source code into the container
# and make sure appuser owns all of it
COPY . /opt/test-runner
RUN chown -R appuser /opt/test-runner
COPY --chown=appuser:appuser . /opt/test-runner

# Build and run the testrunner with appuser
USER appuser

# This populates the build cache with the standard library
# so future compilations are faster
RUN go build std

# Install external packages
WORKDIR /opt/test-runner/external-packages
RUN go mod download
Expand Down

0 comments on commit 3fc98a9

Please sign in to comment.