add docker
Some checks failed
Create and publish a Docker image 🚀 / build-and-push-image (push) Failing after 1m1s
Some checks failed
Create and publish a Docker image 🚀 / build-and-push-image (push) Failing after 1m1s
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM golang:alpine AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN go build -o main .
|
||||||
|
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app/main /app/main
|
||||||
|
COPY --from=builder /app/templates /app/templates
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD ["/app/main"]
|
||||||
Reference in New Issue
Block a user