build(Docker): move server-package.json preparation into Dockerfile

This commit is contained in:
Panagiotis Papadopoulos
2025-03-03 09:28:23 +01:00
committed by Panagiotis Papadopoulos
parent bb7a4f9bc3
commit 2973d38db0
5 changed files with 3 additions and 16 deletions
+1 -2
View File
@@ -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 && \