managerr/backend/Dockerfile
2025-07-25 17:41:14 +02:00

15 lines
272 B
Docker

FROM node:22-alpine
WORKDIR /app
USER root
# Expose port 5000
EXPOSE 5000
# Add wait-for script
COPY wait-for-mongodb.sh /wait-for-mongodb.sh
RUN chmod +x /wait-for-mongodb.sh
# Start the application with wait script
CMD ["/wait-for-mongodb.sh", "npm", "run", "dev"]