-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1ad9fd
commit bae71f1
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |