Dockerfile 310 B

1234567891011121314
  1. FROM docker.io/golang:1.21.0 as builder
  2. WORKDIR /app
  3. COPY go.* ./
  4. RUN go mod download
  5. COPY . ./
  6. RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -v -o pixivfe
  7. FROM docker.io/alpine:3
  8. COPY --from=builder /app/pixivfe /pixivfe
  9. COPY --from=builder /app/template /template
  10. EXPOSE 8282
  11. ENTRYPOINT ["/pixivfe"]