Files
InfantrySkillCalculator/Dockerfile
MaxJa4 f8d8ab968e
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 52s
Update go version in Dockerfile
2025-02-09 17:06:16 +01:00

20 lines
364 B
Docker

FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -v -o isc .
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"]