Skip to content

Commit

Permalink
add go sum
Browse files Browse the repository at this point in the history
remove args from dockerfile
  • Loading branch information
surzm committed Aug 27, 2024
1 parent 7df95b0 commit 5485774
Show file tree
Hide file tree
Showing 2 changed files with 379 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM golang:1.22.2-alpine3.19 AS builder
FROM golang:1.22.5-alpine3.19 AS builder
WORKDIR /app
ARG GITHUB_TOKEN
RUN cat /etc/resolv.conf && apk add --no-cache git && \
git config --add --global url."git@github.com:".insteadOf https://github.com

# Prepare dependencies
COPY go.mod ./
COPY go.mod go.sum ./
RUN go mod download
# Build the binary
COPY ./cmd ./cmd
Expand Down
Loading

0 comments on commit 5485774

Please sign in to comment.