Skip to content

Commit

Permalink
cache busting
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Dec 3, 2024
1 parent 8effab1 commit 989696e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 989696e

Please sign in to comment.