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"]