From 2eca77ff1cc13f733b478e6529427b8b514414b0 Mon Sep 17 00:00:00 2001 From: KOUNOIKE Yuusuke Date: Thu, 20 Apr 2023 18:53:01 +0000 Subject: [PATCH] =?UTF-8?q?frontend=E3=82=92SSG=E3=81=8B=E3=82=89SSR?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose/nginx.conf | 2 +- frontend/Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose/nginx.conf b/docker-compose/nginx.conf index 19d5532..0fb32ad 100644 --- a/docker-compose/nginx.conf +++ b/docker-compose/nginx.conf @@ -46,7 +46,7 @@ http { server_name tv.skunk-python.net; location / { - root /www; + proxy_pass http://frontend:3000; add_header Cross-Origin-Embedder-Policy require-corp; add_header Cross-Origin-Opener-Policy same-origin; diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 0f875a2..60c4afc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -7,5 +7,4 @@ COPY . ./ RUN rm public/index && rm public/encoded && rm public/recorded RUN yarn build -FROM nginx:latest -COPY --from=builder /app/dist /www +CMD [ "yarn", "start" ]