Files
InfantrySkillCalculator/Dockerfile
2024-01-21 18:02:27 +01:00

20 lines
365 B
Docker

FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o isc ./cmd
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/isc .
COPY --from=builder /app/templates ./templates
COPY --from=builder /app/static ./static
COPY --from=builder /app/config ./config
EXPOSE 8000
CMD ["./isc"]