mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
added docker files for deployment
This commit is contained in:
20
proxy/Dockerfile
Normal file
20
proxy/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.23 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
|
||||
|
||||
FROM gcr.io/distroless/base-debian11
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/main .
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["./main"]
|
||||
Reference in New Issue
Block a user