-
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
joussy
committed
Jun 16, 2024
1 parent
6864b30
commit 42661b7
Showing
3 changed files
with
80 additions
and
67 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
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
ARG NODE_VERSION=20.14.0 | ||
|
||
FROM node:${NODE_VERSION}-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY . . | ||
|
||
RUN npm install | ||
|
||
# Run the application as a non-root user. | ||
USER node | ||
|
||
# Expose the port that the application listens on. | ||
EXPOSE 3000 | ||
|
||
# Run the application. | ||
CMD node bin/www |