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 +}