From 273dd77d64584fed5ec406b2aeee209722163439 Mon Sep 17 00:00:00 2001 From: FerSanchez <72047538+fersan1985@users.noreply.github.com> Date: Tue, 2 Aug 2022 14:51:40 -0300 Subject: [PATCH] Nginx change (#329) Co-authored-by: Fernando Sanchez --- frontend/Dockerfile.stage | 3 ++- frontend/deploy/nginx.conf | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/Dockerfile.stage b/frontend/Dockerfile.stage index ac7ed90d5..d76d2e37f 100644 --- a/frontend/Dockerfile.stage +++ b/frontend/Dockerfile.stage @@ -26,6 +26,7 @@ FROM nginx:latest as production-stage RUN mkdir -p /var/run/nginx-cache && chmod 0755 /var/run/nginx-cache WORKDIR /app COPY --from=build-stage /app/packages/client/build /app +COPY ./packages/client/public/cast.png /app COPY ./deploy/nginx.conf /etc/nginx/nginx.conf EXPOSE 80 -RUN ls -la /app \ No newline at end of file +RUN ls -la /app diff --git a/frontend/deploy/nginx.conf b/frontend/deploy/nginx.conf index b1c38cebf..fb77587e0 100644 --- a/frontend/deploy/nginx.conf +++ b/frontend/deploy/nginx.conf @@ -27,8 +27,7 @@ http { index index.html; try_files $uri $uri/ /index.html; } - location /cast.png { - root /cast.png; + location /app/cast.png{ } location /js/script.js { # Change this if you use a different variant of the script @@ -62,4 +61,4 @@ http { root /usr/share/nginx/html; } } -} \ No newline at end of file +}