Skip to content

Commit

Permalink
updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Jul 15, 2023
1 parent 1a53b47 commit 5e34eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20.4-alpine3.18
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20.6-alpine3.18

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand All @@ -11,7 +11,7 @@ RUN mkdir /app
ADD . /app/
WORKDIR /app
ENV CGO_ENABLED=0
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags "-s -w -X main.version=$(git describe --tags) -X main.commit=$(git rev-parse HEAD)" -o sniproxy .
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOFLAGS=-buildvcs=false go build -ldflags "-s -w -X main.version=$(git describe --tags) -X main.commit=$(git rev-parse HEAD)" -o sniproxy .
CMD ["/app/sniproxy"]

FROM scratch
Expand Down

0 comments on commit 5e34eee

Please sign in to comment.