Files
pwa-player/proxy/Dockerfile
2024-09-22 12:15:23 +02:00

21 lines
272 B
Docker

FROM golang:1.23 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -o main .
FROM ubuntu:latest
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/*.env .
EXPOSE 5002
CMD ["./main"]