Skip to content

Commit

Permalink
Upgrade nodejs base image to version 22.4.1 (#211)
Browse files Browse the repository at this point in the history
* chore: use dockerfile best practices

* chore: bump nodejs base image
  • Loading branch information
jkoenig134 authored Jul 10, 2024
1 parent 045423a commit 57758a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .dev/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22.4.0
FROM node:22.4.1
WORKDIR /usr/app

# Webserver, Debugger
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22.4.0 as builder
FROM node:22.4.1 AS builder
ARG COMMIT_HASH
ARG BUILD_NUMBER
ARG VERSION
Expand All @@ -13,7 +13,7 @@ COPY src src
RUN npm run build
RUN .ci/writeBuildInformation.sh

FROM node:22.4.0-alpine
FROM node:22.4.1-alpine
ENV NODE_CONFIG_ENV=prod
RUN apk add --no-cache tini
RUN apk add libcap && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/node && apk del libcap
Expand All @@ -29,7 +29,7 @@ RUN npm ci --omit=dev

COPY --from=builder /usr/app/dist/ dist/

LABEL org.opencontainers.image.source = "https://github.com/nmshd/connector"
LABEL org.opencontainers.image.source="https://github.com/nmshd/connector"

USER node

Expand Down

0 comments on commit 57758a1

Please sign in to comment.