More attempts to fix docker
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user