Spaces:
Running
Running
Update Dockerfile
Browse files- 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"]
|