🏡 index : container_build.git

author Adam Cutchin <cutchin@gmail.com> 2024-12-10 20:58:45.0 -05:00:00
committer Adam Cutchin <cutchin@gmail.com> 2024-12-10 20:58:45.0 -05:00:00
commit
4c7c140f3f8ebac01e7da8e200bb90959f9f6c08 [patch]
tree
79f0c26cdecfffad75e3427c248a221388d8a02f
parent
f5f97347b3733d0e8c8c6ca61952ec33928d336a
download
4c7c140f3f8ebac01e7da8e200bb90959f9f6c08.tar.gz

OC prefers Containerfile be called Dockerfile



Diff

 Dockerfile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..efd7436 100644
--- /dev/null
+++ a/Dockerfile
@@ -1,0 +1,15 @@
FROM registry.access.redhat.com/ubi8/nodejs-14:latest as build

COPY package*.json ./
RUN npm install


FROM registry.access.redhat.com/ubi8/nodejs-14-minimal:latest

COPY --from=build /opt/app-root/src/node_modules /opt/app-root/src/node_modules
COPY . /opt/app-root/src

ENV port 8000
EXPOSE 8000

CMD ["node", "index.js"]