fix(docker): not running due to missing file

This commit is contained in:
Elian Doran 2025-01-11 17:59:41 +02:00
parent 25e0dc3355
commit b2ca87d7e8
No known key found for this signature in database

View File

@ -22,8 +22,7 @@ COPY server-package.json package.json
# Build and cleanup in a single layer # Build and cleanup in a single layer
RUN cp -R build/src/* src/. && \ RUN cp -R build/src/* src/. && \
cp build/docker_healthcheck.js . && \ cp build/docker_healthcheck.js . && \
rm -r build && \
rm docker_healthcheck.ts && \ rm docker_healthcheck.ts && \
npm install && \ npm install && \
npm run webpack && \ npm run webpack && \
@ -31,8 +30,11 @@ RUN cp -R build/src/* src/. && \
npm cache clean --force && \ npm cache clean --force && \
cp src/public/app/share.js src/public/app-dist/. && \ cp src/public/app/share.js src/public/app-dist/. && \
cp -r src/public/app/doc_notes src/public/app-dist/. && \ cp -r src/public/app/doc_notes src/public/app-dist/. && \
rm -rf src/public/app && \ rm -rf src/public/app/* && \
rm src/services/asset_path.ts mkdir -p src/public/app/services && \
cp -r build/src/public/app/services/mime_type_definitions.js src/public/app/services/mime_type_definitions.js && \
rm src/services/asset_path.ts && \
rm -r build
# Runtime stage # Runtime stage
FROM node:22.13.0-bullseye-slim FROM node:22.13.0-bullseye-slim