Renderer, Oberfläche, Eingabe, Sound-Modul, Simulationstest und Docker-Setup (Port 18093)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-02 22:16:41 +01:00
1 parent 14e481cffb
commit db417b3af8
13 files changed
+1930 -19

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# --- Build: Rust -> WASM
FROM rust:1-slim AS build
RUN rustup target add wasm32-unknown-unknown
WORKDIR /src
COPY Cargo.toml Cargo.lock ./
COPY .cargo .cargo
# Abhängigkeiten vorab bauen (Docker-Cache)
RUN mkdir src && echo "fn main() {}" > src/main.rs \
&& cargo build --release --target wasm32-unknown-unknown \
&& rm -rf src
COPY assets assets
COPY src src
RUN touch src/main.rs && cargo build --release --target wasm32-unknown-unknown \
&& mkdir /out \
&& cp target/wasm32-unknown-unknown/release/dungeoncraft.wasm /out/ \
&& cp "$CARGO_HOME"/registry/src/*/macroquad-*/js/mq_js_bundle.js /out/
# --- Auslieferung: nginx
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY www/ /usr/share/nginx/html/
COPY --from=build /out/ /usr/share/nginx/html/
EXPOSE 80