Skip to content

Commit

Permalink
Add Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed May 13, 2024
1 parent d1ad9fd commit bae71f1
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 Node 16 alpine as parent image
FROM node:22-alpine

# Change the working directory on the Docker image to /app
WORKDIR /app

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

# Install dependencies
RUN npm install

# Copy the rest of project files into this image
COPY . .

# Expose application port
EXPOSE 3000

# Start the application
CMD npm run prod

0 comments on commit bae71f1

Please sign in to comment.