Files
ServiceManager/backend/Dockerfile
2025-11-25 21:03:20 +01:00

14 lines
250 B
Docker

# Build stage
FROM golang:1.22 AS builder
WORKDIR /app
COPY go.mod ./
COPY main.go ./
RUN go mod tidy
RUN go build -o backend main.go
# Run stage
FROM debian:bookworm-slim
WORKDIR /app
COPY --from=builder /app/backend .
EXPOSE 8080
CMD ["./backend"]