pixivfe/Dockerfile
2023-06-13 16:07:28 +07:00

14 lines
310 B
Docker

FROM docker.io/golang:1.20.3 as builder
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o pixivfe
FROM docker.io/alpine:3
COPY --from=builder /app/pixivfe /pixivfe
COPY --from=builder /app/template /template
EXPOSE 8080
ENTRYPOINT ["/pixivfe"]