Unified server for docker
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user