20 lines
370 B
Text
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" ]
|