mnisyif_backend/DockerFile

20 lines
377 B
Text

# Use the official Node.js 22 image
FROM node:22:alpine
# 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" ]