TodoSystemMicroService-NodeJS/todo-service/Dockerfile

21 lines
453 B
Docker
Raw Permalink Normal View History

2023-07-09 08:09:57 +00:00
# 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"]