From 30ec51bd000ffe4d7a0a64690eb8dd75efaeb79a Mon Sep 17 00:00:00 2001 From: infidel Date: Sat, 26 Nov 2022 11:28:55 +0700 Subject: [PATCH] Change image reg to redhat's --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa224c1..5f7f491 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM node:16 +FROM ubi9/s2i-core:rhel9.1.0 USER node WORKDIR /home/node/app +RUN mkdir .npm +RUN mkdir /home/node/.npm COPY . . -RUN mkdir /home/node/ RUN npm install RUN npm run build RUN npm run build:fontawesome EXPOSE 5000 -RUN mkdir .npm -RUN mkdir /home/node/.npm -CMD ["npm", "start"] +CMD ["npm", "run", "start"]