Initial
This commit is contained in:
commit
2ca7a264b3
53 files changed
+7113
No files matched your search
@@ -0,0 +1,18 @@
|
||||
FROM python:3.12-slim-bookworm@sha256:935c3c5b12357a7e10caa9c1e6ca5692344d97cf229832ef584be2cec9fc03df AS assets
|
||||
WORKDIR /src
|
||||
COPY game/static game/static
|
||||
COPY game/catalog.json game/engine.py game/strategy.py game/
|
||||
COPY demo demo
|
||||
RUN cd demo/vendor && sha256sum -c ../SHA256SUMS
|
||||
RUN python demo/prepare.py /out
|
||||
|
||||
FROM golang:1.26-alpine@sha256:ecb67f987aa1a57794c91d19ade7ae0209f2f0f5496aaef9e6ae85ddf92d02ab AS build
|
||||
WORKDIR /src
|
||||
COPY demo/server.go .
|
||||
COPY --from=assets /out ./public
|
||||
RUN CGO_ENABLED=0 GOPROXY=off go build -trimpath -ldflags="-s -w -buildid=" -o /server server.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=build /server /server
|
||||
USER 10001:10001
|
||||
ENTRYPOINT ["/server"]
|
||||
Reference in new issue
Block a user