init
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang as builder
|
||||
ENV CGO_ENABLED=0 GOOS=linux
|
||||
WORKDIR /app
|
||||
ADD . .
|
||||
RUN go build -o build ./cmd
|
||||
|
||||
FROM alpine as runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build /app/build
|
||||
ENTRYPOINT ["/app/build"]
|
||||
Reference in New Issue
Block a user