More attempts to fix docker

This commit is contained in:
2025-04-21 23:22:32 +02:00
parent 063877bc09
commit 2e265c08f1
17 changed files with 1567 additions and 116 deletions

View File

@@ -34,18 +34,14 @@ RUN npm install --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 --from=build /app/unified-server.js ./
COPY --from=build /app/src ./src
COPY --from=build /app/run-production.js ./
# Switch to non-root user
USER nodejs
# Expose ports for both web and websocket servers
EXPOSE 3000
EXPOSE 3001
# Set environment variables
ENV NODE_ENV=production
# Start the unified server (web + websocket on the same port)
CMD ["node", "unified-server.js"]
# Start both servers using the production script
CMD ["node", "run-production.js"]