Files
Erupe/Dockerfile
Houmgaor 25fba1c724 fix: remove untracked www/ from Dockerfile COPY
www/ only contains gitignored content (www/jp/) so it doesn't exist
in the CI checkout, causing the Docker build to fail.
2026-02-17 00:34:15 +01:00

29 lines
520 B
Docker

# Build stage
FROM golang:1.25-alpine3.21 AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o erupe-ce .
# Runtime stage
FROM alpine:3.21
RUN adduser -D -h /app erupe
WORKDIR /app
COPY --from=builder /build/erupe-ce .
COPY --from=builder /build/schemas/ ./schemas/
# www/ and bin/ are mounted at runtime if needed
# bin/ and savedata/ are mounted at runtime via docker-compose
# config.json is also mounted at runtime
USER erupe
ENTRYPOINT ["./erupe-ce"]