fix(docker): not running due to missing file on Alpine

This commit is contained in:
Elian Doran 2025-01-11 18:14:23 +02:00
parent b2ca87d7e8
commit d25812cc3b
No known key found for this signature in database

View File

@ -22,7 +22,6 @@ COPY server-package.json package.json
# Build and cleanup in a single layer
RUN cp -R build/src/* src/. && \
cp build/docker_healthcheck.js . && \
rm -r build && \
rm docker_healthcheck.ts && \
npm install && \
npm run webpack && \
@ -31,7 +30,10 @@ RUN cp -R build/src/* src/. && \
cp src/public/app/share.js src/public/app-dist/. && \
cp -r src/public/app/doc_notes src/public/app-dist/. && \
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
FROM node:22.13.0-alpine