Skip to content

Commit

Permalink
(HP-2047) Try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Riippi committed Feb 8, 2024
1 parent 518f2f5 commit 090a103
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ENV YARN_VERSION 1.22.19
RUN yarn policies set-version $YARN_VERSION

# Use non-root user
USER appuser
USER default

# Copy package.json and package-lock.json/yarn.lock files
COPY package*.json *yarn* ./
Expand All @@ -33,7 +33,7 @@ ENV PATH /app/node_modules/.bin:$PATH
# USER root
# RUN bash /tools/apt-install.sh build-essential

USER appuser
USER default
RUN yarn config set network-timeout 300000
RUN yarn && yarn cache clean --force

Expand All @@ -49,7 +49,7 @@ ARG NODE_ENV=development
ENV NODE_ENV $NODE_ENV

# copy in our source code last, as it changes the most
COPY --chown=appuser:appuser . .
COPY --chown=default:default . .

# Bake package.json start command into the image
CMD ["react-scripts", "start"]
Expand All @@ -62,7 +62,7 @@ COPY . /app
RUN yarn build

# =============================
FROM registry.access.redhat.com/ubi9/nginx-122 as production
FROM registry.access.redhat.com/ubi9/nginx-122 AS production
# =============================

USER root
Expand Down

0 comments on commit 090a103

Please sign in to comment.