make deployment container-ready

This commit is contained in:
2022-07-02 10:45:51 +02:00
parent 695df00ebd
commit 56fa4ab05f
5 changed files with 25 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM golang:alpine AS builder
WORKDIR /build
ADD go.mod .
COPY . .
RUN go build
FROM alpine
WORKDIR /build
COPY --from=builder /build/wo-bisch-web /build/wo-bisch-web
COPY snippets snippets
COPY templates templates
COPY static static
CMD ["./wo-bisch-web"]
EXPOSE 4000