mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(docker): not running due to missing file
This commit is contained in:
parent
25e0dc3355
commit
b2ca87d7e8
@ -23,7 +23,6 @@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user