We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11fcd9e commit 1b062dcCopy full SHA for 1b062dc
.dockerignore
@@ -0,0 +1,5 @@
1
+./node_modules
2
+
3
+Dockerfile
4
5
+.dockerignore
Dockerfile
@@ -0,0 +1,16 @@
+# Install the app dependencies in a full UBI Node docker image
+FROM registry.access.redhat.com/ubi8/nodejs-20:latest
+# Copy package.json
+COPY package*.json ./
6
+COPY ./ ./
7
8
+USER 0
9
10
+# Install npm packages
11
+RUN npm install
12
13
+ENV NODE_ENV production
14
+EXPOSE 8080
15
16
+CMD ["npm", "start"]
package.json
@@ -29,7 +29,9 @@
29
"tracing.js",
30
"public",
31
"bin",
32
- "LICENSE"
+ "LICENSE",
33
+ "Dockerfile",
34
+ ".dockerignore"
35
],
36
"bugs": {
37
"url": "https://github.com/nodeshift-starters/nodejs-rest-http/issues"
0 commit comments