Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 20対応 #1467

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
frontend-developmentのimageをnode:20にした
hotate29 committed Oct 2, 2024
commit 704b3ed86019c156b2a465b05dbf0fd66c54423e
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -33,9 +33,15 @@ services:
command: /bin/sh -c "cargo watch -s 'cargo run --bin run_server'"

frontend-development:
image: node:16
image: node:20
ports:
- "3000:3000"
environment:
# Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、
# これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。
# --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。
# react-scripts 4.x系から移行したら、このオプションは不要になる。
NODE_OPTIONS: --openssl-legacy-provider
volumes:
- ./:/app
- node_modules:/app/atcoder-problems-frontend/node_modules