diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dac70f6 --- /dev/null +++ b/Dockerfile @@ -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"]