adding in simple dockerfile
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.20 AS builder
|
||||
COPY / /app
|
||||
|
||||
WORKDIR /app/cmd
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o main
|
||||
|
||||
FROM alpine:latest AS production
|
||||
COPY --from=builder /app/cmd .
|
||||
CMD ["./main"]
|
||||
|
||||
Reference in New Issue
Block a user