Skip to content

Commit

Permalink
chore:sped up local builds by using a separate go mod download step i…
Browse files Browse the repository at this point in the history
…n the Dockerfile
  • Loading branch information
CommanderStorm committed Sep 7, 2023
1 parent f368ce6 commit 5a2aa97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk bash
RUN adduser -D -g '' appuser
WORKDIR /app

# Copy go mod and sum files and download dependencies
COPY go.mod go.sum ./
RUN go mod download

# Copy source code
COPY . .

Expand Down

0 comments on commit 5a2aa97

Please sign in to comment.