diff --git a/Dockerfile b/Dockerfile index 91eb978..7bf3772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM registry.access.redhat.com/ubi9:latest USER root -RUN dnf update -y && dnf upgrade -y && \ +RUN dnf update -y && \ + dnf upgrade -y && \ dnf module enable nodejs:20 nginx:1.24 -y && \ dnf install -y nodejs nginx && \ npm install -g yarn @@ -14,10 +15,11 @@ RUN mkdir -p /var/cache/nginx /var/log/nginx /run && \ chmod -R 777 /var/cache/nginx /var/log/nginx /run WORKDIR /usr/src/app -ADD package.json yarn.lock ./ + +COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile --ignore-optional -ADD . . +COPY . . RUN yarn build