Skip to content

Commit

Permalink
Merge pull request #18 from zazuko/dependabot/npm_and_yarn/test/app/f…
Browse files Browse the repository at this point in the history
…astify-4.26.2

build(deps): bump fastify from 4.10.2 to 4.26.2 in /test/app
  • Loading branch information
ludovicm67 authored Apr 23, 2024
2 parents 661490d + a0344d7 commit 03bce7e
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 272 deletions.
14 changes: 7 additions & 7 deletions test/app/Dockerfile
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" ]
Loading

0 comments on commit 03bce7e

Please sign in to comment.