teafolio/Dockerfile
2020-05-02 14:16:49 +12:00

16 lines
298 B
Docker

# Dockerfile for production Teafolio deployments
FROM golang:1.14-alpine AS builder
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" ]