mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-27 07:49:57 -05:00
build(Docker): move server-package.json preparation into Dockerfile
This commit is contained in:
committed by
Panagiotis Papadopoulos
parent
bb7a4f9bc3
commit
2973d38db0
+1
-2
@@ -17,10 +17,9 @@ WORKDIR /usr/src/app
|
||||
|
||||
# Copy only necessary files for build
|
||||
COPY . .
|
||||
COPY server-package.json package.json
|
||||
|
||||
# Build and cleanup in a single layer
|
||||
RUN cp -R build/src/* src/. && \
|
||||
RUN sed -i "/electron/d" package.json && \
|
||||
cp build/docker_healthcheck.js . && \
|
||||
rm docker_healthcheck.ts && \
|
||||
npm install && \
|
||||
|
||||
Reference in New Issue
Block a user