Skip to content

Commit

Permalink
docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Mar 28, 2024
1 parent 76a5941 commit af1c703
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# RedHat UBI 8 with an updated version of Node.js
FROM registry.access.redhat.com/ubi8/ubi as builder

# 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
Expand Down
3 changes: 1 addition & 2 deletions backend/package-lock.json

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

1 change: 0 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# RedHat UBI 8 with nodejs 16
FROM registry.access.redhat.com/ubi8/ubi as builder

# Enable the Node.js 16 module and install it
RUN dnf module enable -y nodejs:16 && dnf install -y nodejs

# Install packages, build and keep only prod packages
Expand Down
4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
"sass": "^1.71.1"
},
"scripts": {
"prebuild": "rimraf dist",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"start:prod": "node dist/main"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit af1c703

Please sign in to comment.