From 6d75c20497b5ac72865b3d338394497f81460532 Mon Sep 17 00:00:00 2001 From: Maia Iyer Date: Fri, 9 Feb 2024 13:41:14 -0500 Subject: [PATCH] Add mkdir for file not found error (#329) Signed-off-by: Maia Iyer --- frontend/Dockerfile.frontend-container | 1 + frontend/Dockerfile.frontend-container.ubi | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/Dockerfile.frontend-container b/frontend/Dockerfile.frontend-container index 177d194d..9f3e0c6e 100644 --- a/frontend/Dockerfile.frontend-container +++ b/frontend/Dockerfile.frontend-container @@ -15,6 +15,7 @@ COPY --from=build /usr/src/app/.env.prod . RUN npm install -g npm@9.7.1 && \ npm install --location=global serve && \ npm install react-inject-env +RUN mkdir build/tmp # Set dynamic port, defualt 3000 ENV PORT_FE=3000 diff --git a/frontend/Dockerfile.frontend-container.ubi b/frontend/Dockerfile.frontend-container.ubi index 1aab264c..3f40c427 100644 --- a/frontend/Dockerfile.frontend-container.ubi +++ b/frontend/Dockerfile.frontend-container.ubi @@ -15,6 +15,7 @@ COPY --from=build --chown=1001:0 /opt/app-root/src/.env.prod . RUN npm install -g npm@9.7.1 && \ npm install --location=global serve && \ npm install react-inject-env +RUN mkdir build/tmp # Update permissions after build USER 0