-
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
Showing
1 changed file
with
2 additions
and
29 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 |
---|---|---|
@@ -1,29 +1,2 @@ | ||
# This file is the main docker file configurations | ||
|
||
# Official Node JS runtime as a parent image | ||
FROM node:20.0-alpine | ||
|
||
# Set the working directory to ./app | ||
WORKDIR /app | ||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package.json ./ | ||
|
||
RUN apk add --no-cache git | ||
|
||
# Install any needed packages | ||
RUN npm install | ||
|
||
# Audit fix npm packages | ||
RUN npm audit fix | ||
|
||
# Bundle app source | ||
COPY . /app | ||
|
||
# Make port 3000 available to the world outside this container | ||
EXPOSE 3000 | ||
|
||
# Run app.js when the container launches | ||
CMD ["npm", "start"] | ||
FROM nginx | ||
COPY . /usr/share/nginx/html |