ShawnAI commited on
Commit
3142d25
·
1 Parent(s): 21cb055

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -4,6 +4,7 @@ FROM golang:$GOLANG_VERSION-alpine as builder
4
  RUN apk --no-cache add tzdata
5
  WORKDIR /go/src/github.com/serjs/socks5
6
  COPY . .
 
7
  RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
8
 
9
  FROM gcr.io/distroless/static:nonroot
 
4
  RUN apk --no-cache add tzdata
5
  WORKDIR /go/src/github.com/serjs/socks5
6
  COPY . .
7
+ RUN go mod init
8
  RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
9
 
10
  FROM gcr.io/distroless/static:nonroot