We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c10906d commit 2a0aeadCopy full SHA for 2a0aead
Dockerfile
@@ -0,0 +1,12 @@
1
+# Build stage
2
+FROM golang AS builder
3
+WORKDIR /app
4
+COPY . .
5
+RUN go mod download
6
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o PM-StorageExtAPI
7
+
8
+# Production stage
9
+FROM alpine
10
11
+COPY --from=builder /app/PM-StorageExtAPI /app/PM-StorageExtAPI
12
+ENTRYPOINT ["/app/PM-StorageExtAPI"]
0 commit comments