TodoSystemMicroService-NodeJS/notification-service/Dockerfile
2023-07-09 11:10:08 +03:00

20 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 4000
# Start the application in development mode
CMD ["npm", "run", "dev"]