game-wake-wolf commited on
Commit
9ad56b3
·
verified ·
1 Parent(s): dc86c9f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -4,6 +4,6 @@ WORKDIR /app
4
  COPY api/ ./api/
5
  COPY go.mod go.sum ./
6
  RUN go mod download
7
- RUN go build -o main ./api && chmod +x main
8
  EXPOSE 8080
9
  CMD ["./main"]
 
4
  COPY api/ ./api/
5
  COPY go.mod go.sum ./
6
  RUN go mod download
7
+ RUN CGO_ENABLED=0 GOOS=linux go build -o main ./api && chmod +x main
8
  EXPOSE 8080
9
  CMD ["./main"]