added docker files for deployment

This commit is contained in:
2024-09-22 09:01:24 +02:00
parent acaedfe8c7
commit b2a49ca9f7
9 changed files with 19640 additions and 4362 deletions

20
proxy/Dockerfile Normal file
View 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"]