2020-05-02 02:16:49 +00:00
|
|
|
# Dockerfile for production Teafolio deployments
|
|
|
|
|
2022-12-31 01:29:45 +00:00
|
|
|
FROM golang:1.19-alpine AS builder
|
2020-05-02 02:16:49 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN go build -ldflags "-s -w" && chmod +x teafolio
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/teafolio /app/teafolio
|
|
|
|
COPY /static /app/static
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/app/teafolio" ]
|