mnisyif_backend/DockerFile
2024-07-11 19:41:00 -04:00

20 lines
370 B
Text

# Use the official Node.js 22 image
FROM node:22
# Create and change to the app directory
WORKDIR /usr/src/app
# Copy application dependency manifests to the container image
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy application code
COPY . .
# Expose the port the app runs on
EXPOSE 5000
# Run the application
CMD [ "node", "server.js" ]