Skip to content

Commit

Permalink
created Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TKS committed Apr 1, 2023
1 parent 68af30b commit a617eef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the official Node.js image as the base image
FROM node:14

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install the dependencies
RUN npm ci

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port the app will run on
EXPOSE 3001

# Start the application
CMD ["npm", "run", "dev"]

0 comments on commit a617eef

Please sign in to comment.