Files
aego/deploy/Dockerfile
T
sanspie 50be5c04bc
ci-platforms / darwin amd64 smoke (push) Skipped
GitHub / linux amd64 native GitHub-hosted native CI: success
ci-platforms / windows amd64 smoke (push) Skipped
GitHub / windows amd64 native GitHub-hosted native CI: success
GitHub / darwin arm64 native GitHub-hosted native CI: success
GitHub / darwin amd64 native GitHub-hosted native CI: success
ci / checks (push) Failing after 1h21m34s
ci / native-authoring (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 12m4s
ci / release (push) Skipped
Stage 12.5: Art Workspace and asset authoring
Add dockable Art tools, animation and previews, guarded asset workflows,
and the Web Asset Studio built on the shared Art Core. Expand English and
Russian documentation, interactive Try scenes, examples and editor icons.

Add audio waveform navigation, source analysis, guarded previews and a
browser Worker mixer. Preserve source changes and recovery with bounded
checks, and strengthen native, browser and interoperability CI.

Prepare version 0.12.5 and manually built native artifact candidates.
Fix the production site image demo build dependency.
Reuse immutable scene indices when capturing keyframes.
Wait for real Persist save/load completion in component tests.
Stabilize browser Game View captures outside pointer hover.
Aseprite interchange and persistent Audio EDL recovery remain limited;
the artifact workflow does not publish releases or change stable.
2026-11-15 10:37:50 +03:00

41 lines
2.6 KiB
Docker

FROM golang:1.27-alpine AS toolchain
FROM ubuntu:24.04 AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates make gzip brotli python3 glslang-tools=15.1.0-2~ubuntu0.24.04.2
COPY --from=toolchain /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:${PATH}"
WORKDIR /src
COPY go.mod go.sum ./
COPY tools/gendocs/go.mod tools/gendocs/go.sum tools/gendocs/
RUN go mod download && cd tools/gendocs && go mod download
COPY . .
ARG AEGO_COMMIT=""
ARG ARTSTUDIO_MANIFEST_SHA256=""
ENV AEGO_COMMIT=$AEGO_COMMIT
# The build context must contain the *already built* immutable release at
# studio-artifact/. Fail closed rather than silently packaging local /studio.
# The caller must separately verify the full context against the commit and run
# all release gates against the same staged artifact and finished site image.
RUN go run ./tools/artstudio/release verify-site-input \
-dir /src/studio-artifact -root /src -sha256 "$ARTSTUDIO_MANIFEST_SHA256" \
-commit "$AEGO_COMMIT" -app-origin https://aeditor.akarpov.ru -docs-origin https://aego.akarpov.ru \
&& bash tools/check-glslang.sh \
&& ARTSTUDIO_ARTIFACT=/src/studio-artifact ARTSTUDIO_MANIFEST_SHA256="$ARTSTUDIO_MANIFEST_SHA256" make site-headless \
DOCS_BUILD_ARGS='--examples-production --examples-license MIT --examples-license-file /src/docs/try-examples-license.txt' \
&& test -f site/asset-studio/integration.json && test ! -e site/studio \
&& go run ./tools/artstudio/release verify-site-input \
-dir /src/studio-artifact -root /src -sha256 "$ARTSTUDIO_MANIFEST_SHA256" \
-commit "$AEGO_COMMIT" -app-origin https://aeditor.akarpov.ru -docs-origin https://aego.akarpov.ru
RUN find site -type f \( -name '*.js' -o -name '*.css' -o -name '*.html' -o -name '*.json' -o -name '*.svg' \) -exec gzip -9 -k -f {} \;
RUN find site -type f -name '*.wasm' | while read -r f; do [ -f "$f.gz" ] || gzip -9 -k -f "$f"; [ -f "$f.br" ] || brotli -q 11 -k -f "$f"; done
COPY tools/release/install.sh tools/release/install.ps1 site/
RUN chmod 0644 site/install.sh site/install.ps1
# the edge proxy serves the site from its own copy: everything but the wasm binaries, which it fetches separately
RUN mkdir -p site/__edge && tar -czf site/__edge/site.tar.gz --exclude='./__edge' --exclude='*.wasm' --exclude='*.wasm.gz' --exclude='*.wasm.br' -C site . \
&& sha256sum site/__edge/site.tar.gz | cut -c1-16 > site/__edge/version
FROM nginx:1.27-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /src/site /usr/share/nginx/html
HEALTHCHECK --interval=10s --timeout=3s CMD wget -qO- http://127.0.0.1/healthz >/dev/null || exit 1