Skip to content

Commit

Permalink
Merge pull request #149 from kounoike:improvement/docker-frontend
Browse files Browse the repository at this point in the history
frontendをSSGからSSRに変更
  • Loading branch information
kounoike authored Apr 20, 2023
2 parents f73325b + 2eca77f commit 4cb0420
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 4cb0420

Please sign in to comment.