Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -6,6 +6,7 @@ COPY build/package.json build/package-lock.json* ./
|
|
| 6 |
COPY frontend/app.js frontend/cave3d.js frontend/cavehelpers.js frontend/home3d.js frontend/store.js frontend/pwa.js frontend/scoreboard.js frontend/voice.js frontend/minigames.js frontend/env.js ./frontend/
|
| 7 |
COPY build/esbuild.config.mjs ./
|
| 8 |
COPY patch_version.mjs ./
|
|
|
|
| 9 |
|
| 10 |
# v13: all 3D scene + character-control enhancements are MATERIALIZED directly
|
| 11 |
# in the source files (cave3d.js/home3d.js/app.js). No brittle build-time
|
|
@@ -23,7 +24,8 @@ WORKDIR /app
|
|
| 23 |
|
| 24 |
RUN pip install --no-cache-dir fastapi uvicorn[standard]
|
| 25 |
|
| 26 |
-
|
|
|
|
| 27 |
COPY frontend/index.html ./frontend/index.html
|
| 28 |
COPY --from=build /build/frontend/app.bundle.js ./frontend/app.bundle.js
|
| 29 |
COPY --from=build /build/frontend/env.js ./frontend/env.js
|
|
|
|
| 6 |
COPY frontend/app.js frontend/cave3d.js frontend/cavehelpers.js frontend/home3d.js frontend/store.js frontend/pwa.js frontend/scoreboard.js frontend/voice.js frontend/minigames.js frontend/env.js ./frontend/
|
| 7 |
COPY build/esbuild.config.mjs ./
|
| 8 |
COPY patch_version.mjs ./
|
| 9 |
+
COPY backend.py .
|
| 10 |
|
| 11 |
# v13: all 3D scene + character-control enhancements are MATERIALIZED directly
|
| 12 |
# in the source files (cave3d.js/home3d.js/app.js). No brittle build-time
|
|
|
|
| 24 |
|
| 25 |
RUN pip install --no-cache-dir fastapi uvicorn[standard]
|
| 26 |
|
| 27 |
+
# backend.py đã được đồng bộ VERSION_ID=v13 trong build stage
|
| 28 |
+
COPY --from=build /build/backend.py .
|
| 29 |
COPY frontend/index.html ./frontend/index.html
|
| 30 |
COPY --from=build /build/frontend/app.bundle.js ./frontend/app.bundle.js
|
| 31 |
COPY --from=build /build/frontend/env.js ./frontend/env.js
|