-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from zazuko/dependabot/npm_and_yarn/test/app/f…
…astify-4.26.2 build(deps): bump fastify from 4.10.2 to 4.26.2 in /test/app
- Loading branch information
Showing
3 changed files
with
376 additions
and
272 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,24 +1,24 @@ | ||
FROM docker.io/library/node:16-alpine | ||
FROM docker.io/library/node:20-alpine | ||
|
||
WORKDIR /app | ||
|
||
# install tini to handle signals | ||
# Install tini to handle signals | ||
RUN apk add --no-cache tini | ||
|
||
# configure server listening | ||
# Configure server listening | ||
ENV SERVER_PORT="8080" | ||
ENV SERVER_HOST="::" | ||
|
||
# build the app | ||
# Build the app | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci | ||
COPY . . | ||
RUN npm run build | ||
|
||
# app is exposed on the specified port | ||
# App is exposed on the specified port | ||
EXPOSE "${SERVER_PORT}" | ||
|
||
# run as "nobody", a non-root user | ||
USER 65534:65534 | ||
# Run as a non-root user | ||
USER 1000:1000 | ||
|
||
CMD [ "tini", "--", "node", "dist/index.js" ] |
Oops, something went wrong.