add http-server part 7.4
This commit is contained in:
parent
7562a377d1
commit
fb7a448c29
2 changed files with 3 additions and 2 deletions
|
@ -34,9 +34,11 @@ WORKDIR /app
|
|||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app/frontend/index.html ./dist/frontend/
|
||||
|
||||
COPY --from=build /app/package.json ./dist/backend/
|
||||
|
||||
# Neu: Konfigurationsdatei ins Backend-Verzeichnis
|
||||
COPY --from=build /app/backend/config.json ./dist/backend/
|
||||
|
||||
COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching
|
||||
|
||||
# Falls notwendig: Umbenennen von .js zu .mjs
|
||||
|
@ -44,7 +46,6 @@ RUN find dist/frontend -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.mjs"' {} \;
|
|||
|
||||
# Starte den Backend-Server
|
||||
#CMD ["node", "--loader", "ts-node/esm", "/app/dist/backend/server.js"]
|
||||
|
||||
# Starte den Frontend-Server
|
||||
#CMD ["npx", "http-server", "dist/frontend", "-p", "8080", "--mime", "application/javascript=js"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue