Unified server for docker

This commit is contained in:
2025-04-21 22:18:23 +02:00
parent 32dd6ff811
commit 2bfd1b100e
5 changed files with 233 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ RUN npm ci --omit=dev
# Copy built application from the build stage
COPY --from=build /app/build ./build
COPY --from=build /app/src/websocket-server.js ./src/
COPY production.js ./
COPY --from=build /app/unified-server.js ./
# Switch to non-root user
USER nodejs
@@ -47,5 +47,5 @@ EXPOSE 3001
# Set environment variables
ENV NODE_ENV=production
# Start the full application (web + websocket)
CMD ["node", "production.js"]
# Start the unified server (web + websocket on the same port)
CMD ["node", "unified-server.js"]