Skip to content

Commit b2ca87d

Browse files
committed
fix(docker): not running due to missing file
1 parent 25e0dc3 commit b2ca87d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ COPY server-package.json package.json
2222

2323
# Build and cleanup in a single layer
2424
RUN cp -R build/src/* src/. && \
25-
cp build/docker_healthcheck.js . && \
26-
rm -r build && \
25+
cp build/docker_healthcheck.js . && \
2726
rm docker_healthcheck.ts && \
2827
npm install && \
2928
npm run webpack && \
3029
npm prune --omit=dev && \
3130
npm cache clean --force && \
3231
cp src/public/app/share.js src/public/app-dist/. && \
3332
cp -r src/public/app/doc_notes src/public/app-dist/. && \
34-
rm -rf src/public/app && \
35-
rm src/services/asset_path.ts
33+
rm -rf src/public/app/* && \
34+
mkdir -p src/public/app/services && \
35+
cp -r build/src/public/app/services/mime_type_definitions.js src/public/app/services/mime_type_definitions.js && \
36+
rm src/services/asset_path.ts && \
37+
rm -r build
3638

3739
# Runtime stage
3840
FROM node:22.13.0-bullseye-slim

0 commit comments

Comments
 (0)