Private
Public Access
1
0

big Performance fix
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 1m27s

This commit is contained in:
Sebastian Unterschütz
2025-12-04 22:53:09 +01:00
parent 5acaccef37
commit add4672e26

View File

@@ -58,7 +58,8 @@ COPY --from=minifier /minify/game.min.js ./static/js/game.min.js
# Schritt A: Lösche alle Zeilen, die <script src="js/... enthalten # Schritt A: Lösche alle Zeilen, die <script src="js/... enthalten
# Schritt B: Füge vor dem schließenden </body> Tag das neue Script ein # Schritt B: Füge vor dem schließenden </body> Tag das neue Script ein
RUN sed -i '/<script src="js\//d' static/index.html \ RUN sed -i '/<script src="js\//d' static/index.html \
&& sed -i '/<\/body>/i \ <script src="js/game.min.js"></script>' static/index.html && sed -i '/<\/body>/i \ <script src="js/game.min.js"></script>' static/index.html \
&& sed -i '/<\/head>/i \ <script src="assets/pixi.min.js"></script>' static/index.html
# Port und Start # Port und Start
EXPOSE 8080 EXPOSE 8080