izuemon commited on
Commit
97be6e8
·
verified ·
1 Parent(s): a4aff33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -9
Dockerfile CHANGED
@@ -37,14 +37,6 @@ RUN pip install --no-cache-dir pip -U && \
37
  "protobuf<4" \
38
  "click<8.1"
39
 
40
- # Node.js のインストール
41
- RUN apt-get update && \
42
- apt-get install -y curl && \
43
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
44
- apt-get install -y nodejs && \
45
- rm -rf /var/lib/apt/lists/* && \
46
- apt-get clean
47
-
48
  # requirements.txt に基づく Python パッケージのインストール
49
  # gradio、uvicorn、websockets、spaces も追加
50
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
@@ -63,7 +55,7 @@ COPY ./ /app
63
 
64
  # pip freeze 保存用
65
  RUN mkdir -p /pipfreeze && pip freeze > /pipfreeze/freeze.txt
66
- COPY node_modules node_modules
67
  RUN sed -i '/async loadResources (),/,/}/c\ async loadResources () {}' node_modules/@turbowarp/packager/src/packager/packager.js
68
  # コンテナ起動時に app.py を実行
69
  CMD ["python", "app.py"]
 
37
  "protobuf<4" \
38
  "click<8.1"
39
 
 
 
 
 
 
 
 
 
40
  # requirements.txt に基づく Python パッケージのインストール
41
  # gradio、uvicorn、websockets、spaces も追加
42
  RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
 
55
 
56
  # pip freeze 保存用
57
  RUN mkdir -p /pipfreeze && pip freeze > /pipfreeze/freeze.txt
58
+
59
  RUN sed -i '/async loadResources (),/,/}/c\ async loadResources () {}' node_modules/@turbowarp/packager/src/packager/packager.js
60
  # コンテナ起動時に app.py を実行
61
  CMD ["python", "app.py"]