Skip to content

Commit

Permalink
add go.sum to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sva committed Feb 19, 2025
1 parent 6d74818 commit a4fce99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG TARGETARCH

WORKDIR /app
# copy over dependency files and download dependencies
COPY go.mod .
COPY go.mod go.sum ./

RUN go mod download

Expand Down
4 changes: 2 additions & 2 deletions v3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ARG SERVICE_NAME

WORKDIR /app/v3/services/${SERVICE_NAME}
# copy over dependency files and download dependencies
COPY ./v3/services/${SERVICE_NAME}/go.mod .
COPY ./v3/go.mod /app/v3
COPY ./v3/services/${SERVICE_NAME}/go.mod ./v3/services/${SERVICE_NAME}/go.sum ./
COPY ./v3/go.mod ./v3/go.sum /app/v3/

RUN go mod download

Expand Down

0 comments on commit a4fce99

Please sign in to comment.