add Dockerfile

This commit is contained in:
Joerg Lehmann 2022-12-27 09:21:27 +01:00
parent a827a6e91b
commit 15a2827afe
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -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