Skip to content

Commit

Permalink
updating node
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Mar 28, 2024
1 parent 58de43e commit 9f4e47e
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# RedHat UBI 8 with nodejs 14
# RedHat UBI 8 with an updated version of Node.js
FROM registry.access.redhat.com/ubi8/ubi as builder
RUN dnf module install -y nodejs:14

# Replace nodejs:14 with the version you need, for example, nodejs:16
RUN dnf module enable -y nodejs:16 && dnf install -y nodejs

# Install packages, build and keep only prod packages
WORKDIR /app
Expand All @@ -11,7 +13,7 @@ RUN npm ci --only=prod && \
# Deployment container
FROM registry.access.redhat.com/ubi8/ubi-micro

# Set node to production
# Set node to production
ENV NODE_ENV production

# Node packages and dependencies
Expand Down
98 changes: 98 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f4e47e

Please sign in to comment.