From 15a2827afec3338e5fb83e937b4e7a40287979d1 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Tue, 27 Dec 2022 09:21:27 +0100 Subject: [PATCH] add Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a65bf84 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:alpine AS builder +WORKDIR /build +ADD go.mod . +COPY . . +RUN go build +FROM alpine +WORKDIR /build +RUN apk add --no-cache tzdata +COPY --from=builder /build/mini-beieli-web /build/mini-beieli-web +COPY snippets snippets +COPY templates templates +COPY static static +CMD ["./mini-beieli-web"] +EXPOSE 4000