Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +17 -18
Dockerfile
CHANGED
|
@@ -19,23 +19,22 @@ RUN apt-get update && \
|
|
| 19 |
&& git lfs install
|
| 20 |
|
| 21 |
# Node.js のインストール
|
| 22 |
-
RUN apt-get update && \
|
| 23 |
-
apt-get install -y curl && \
|
| 24 |
-
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
| 25 |
-
apt-get install -y nodejs && \
|
| 26 |
-
rm -rf /var/lib/apt/lists/* && \
|
| 27 |
-
apt-get clean
|
| 28 |
-
COPY . .
|
| 29 |
-
RUN npm install packager@git+https://github.com/izum00/turbowarp-packager.git
|
| 30 |
-
|
| 31 |
# pip のアップグレードと必要ライブラリのインストール
|
| 32 |
-
RUN pip install --no-cache-dir pip -U && \
|
| 33 |
-
pip install --no-cache-dir \
|
| 34 |
-
datasets \
|
| 35 |
-
"huggingface-hub>=0.30" \
|
| 36 |
-
"hf-transfer>=0.1.4" \
|
| 37 |
-
"protobuf<4" \
|
| 38 |
-
"click<8.1"
|
| 39 |
|
| 40 |
# requirements.txt に基づく Python パッケージのインストール
|
| 41 |
# gradio、uvicorn、websockets、spaces も追加
|
|
@@ -47,8 +46,8 @@ RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \
|
|
| 47 |
spaces
|
| 48 |
|
| 49 |
# ユーザ用ディレクトリ作成とシンボリックリンク
|
| 50 |
-
RUN mkdir -p /home/user && \
|
| 51 |
-
( [ -e /home/user/app ] || ln -s /app/ /home/user/app ) || true
|
| 52 |
|
| 53 |
# 現在のディレクトリをコンテナ内 /app にコピー
|
| 54 |
COPY ./ /app
|
|
|
|
| 19 |
&& git lfs install
|
| 20 |
|
| 21 |
# Node.js のインストール
|
| 22 |
+
#RUN apt-get update && \
|
| 23 |
+
# apt-get install -y curl && \
|
| 24 |
+
# curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
| 25 |
+
# apt-get install -y nodejs && \
|
| 26 |
+
# rm -rf /var/lib/apt/lists/* && \
|
| 27 |
+
# apt-get clean
|
| 28 |
+
#COPY . .
|
| 29 |
+
#RUN npm install packager@git+https://github.com/izum00/turbowarp-packager.git
|
|
|
|
| 30 |
# pip のアップグレードと必要ライブラリのインストール
|
| 31 |
+
#RUN pip install --no-cache-dir pip -U && \
|
| 32 |
+
# pip install --no-cache-dir \
|
| 33 |
+
# datasets \
|
| 34 |
+
# "huggingface-hub>=0.30" \
|
| 35 |
+
# "hf-transfer>=0.1.4" \
|
| 36 |
+
# "protobuf<4" \
|
| 37 |
+
# "click<8.1"
|
| 38 |
|
| 39 |
# requirements.txt に基づく Python パッケージのインストール
|
| 40 |
# gradio、uvicorn、websockets、spaces も追加
|
|
|
|
| 46 |
spaces
|
| 47 |
|
| 48 |
# ユーザ用ディレクトリ作成とシンボリックリンク
|
| 49 |
+
#RUN mkdir -p /home/user && \
|
| 50 |
+
# ( [ -e /home/user/app ] || ln -s /app/ /home/user/app ) || true
|
| 51 |
|
| 52 |
# 現在のディレクトリをコンテナ内 /app にコピー
|
| 53 |
COPY ./ /app
|