add dockerfile
This commit is contained in:
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM golang:alpine AS builder
|
||||
WORKDIR /main
|
||||
COPY ./ /main
|
||||
RUN go build -o app
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /main
|
||||
COPY --from=builder /main /main/
|
||||
ENTRYPOINT ["/main/app"]
|
||||
Reference in New Issue
Block a user