feat: add Docker configuration with production-ready setup

This commit is contained in:
Julien Froidefond
2025-02-12 14:24:47 +01:00
parent c820644301
commit 52283e3155
3 changed files with 58 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use Node.js LTS version
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy the rest of the application
COPY . .
# Build the application
RUN npm run build
# Expose the port the app runs on
EXPOSE 3000
# Start the application in production mode by default
CMD ["npm", "start"]