21 lines
453 B
Docker
21 lines
453 B
Docker
|
# Use the official Node.js 14 image as the base
|
||
|
FROM node:14
|
||
|
|
||
|
# Set the working directory in the container
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Copy package.json and package-lock.json to the container
|
||
|
COPY package*.json ./
|
||
|
|
||
|
# Install project dependencies
|
||
|
RUN npm install
|
||
|
|
||
|
# Copy the rest of the application code to the container
|
||
|
COPY . .
|
||
|
|
||
|
# Expose the port on which your Express app listens
|
||
|
EXPOSE 3000
|
||
|
|
||
|
# Start the application in development mode
|
||
|
CMD ["npm", "run", "dev"]
|