doo / Dockerfile
imseldrith's picture
Update Dockerfile
ec579eb verified
raw
history blame
347 Bytes
# Use an official Node.js runtime as a parent image
FROM node:14
# Set the working directory
WORKDIR /app
# Copy package.json and install dependencies
COPY package.json ./
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port your app runs on
EXPOSE 3000
# Define the command to run your app
CMD ["npm", "start"]