Files
epess-web-backend/Dockerfile
Ly Tuan Kiet a516dce800 chore: update Node version and enhance debugging capabilities
- Removed .nvmrc file to eliminate version locking.
- Updated Dockerfile to use Node 22.6.0-alpine for improved performance and security.
- Modified package.json to enhance the 'start:dev' script with debugging options.
- Added new launch configuration in VSCode for attaching to Node processes by PID.
- Cleaned up settings.json by removing unused configurations.
- Refactored main.ts to simplify the bootstrap process.
- Enhanced logging in OrderSchema and ScheduleSchema for better traceability of operations.
2024-12-03 22:46:23 +07:00

23 lines
348 B
Docker

FROM node:22.6.0-alpine AS node_base
# Set the working directory
WORKDIR /app
# Enable legacy peer deps
RUN npm config set legacy-peer-deps true
COPY . .
# Install the dependencies
RUN npm install
# Generate the Prisma client
RUN npm run prisma:generate
# Expose the port
EXPOSE 3000
# Start the application
CMD ["npm", "run", "start:dev"]