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" ]