- Setup C++/Qt6 desktop application structure - Added initial Go proxy backend for TMDB/IGDB integration
14 lines
379 B
Docker
14 lines
379 B
Docker
# --- build stage ---
|
|
FROM golang:1.22-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /umt-tmdb-proxy .
|
|
|
|
# --- run stage ---
|
|
FROM gcr.io/distroless/static-debian12
|
|
COPY --from=build /umt-tmdb-proxy /umt-tmdb-proxy
|
|
EXPOSE 8080
|
|
USER nonroot:nonroot
|
|
ENTRYPOINT ["/umt-tmdb-proxy"]
|