Files
gliffy2drawio/Dockerfile
2026-01-06 19:44:21 +11:00

16 lines
260 B
Docker

# Build stage
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o server ./cmd/server
# Runtime stage
FROM alpine:3.20
WORKDIR /app
COPY --from=builder /app/server /usr/local/bin/server
EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/server"]