Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -15,14 +15,18 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
| 15 |
&& npm install -g yarn pnpm typescript ts-node nodemon \
|
| 16 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
-
# ---- Python deps ----
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
requests ipython huggingface_hub transformers \
|
| 21 |
-
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
|
| 22 |
numpy pandas scipy scikit-learn matplotlib \
|
| 23 |
flask fastapi uvicorn jupyter \
|
| 24 |
black ruff pylint
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# ---- create user WITH PASSWORD + sudo ----
|
| 27 |
RUN useradd -m -u 1000 -s /bin/bash user \
|
| 28 |
&& echo "user:user123" | chpasswd \
|
|
@@ -39,7 +43,6 @@ WORKDIR /home/user
|
|
| 39 |
# ---- workspace + code-server extensions ----
|
| 40 |
RUN mkdir -p /home/user/workspace /home/user/.local/share/code-server
|
| 41 |
|
| 42 |
-
# Install useful extensions (Codeium AI, Python, etc.)
|
| 43 |
RUN code-server --install-extension ms-python.python \
|
| 44 |
&& code-server --install-extension esbenp.prettier-vscode \
|
| 45 |
&& code-server --install-extension bradlc.vscode-tailwindcss \
|
|
|
|
| 15 |
&& npm install -g yarn pnpm typescript ts-node nodemon \
|
| 16 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
+
# ---- Python deps (from PyPI) ----
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
requests ipython huggingface_hub transformers \
|
|
|
|
| 21 |
numpy pandas scipy scikit-learn matplotlib \
|
| 22 |
flask fastapi uvicorn jupyter \
|
| 23 |
black ruff pylint
|
| 24 |
|
| 25 |
+
# ---- PyTorch CPU-only (from PyTorch index) ----
|
| 26 |
+
RUN pip install --no-cache-dir \
|
| 27 |
+
torch torchvision torchaudio \
|
| 28 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 29 |
+
|
| 30 |
# ---- create user WITH PASSWORD + sudo ----
|
| 31 |
RUN useradd -m -u 1000 -s /bin/bash user \
|
| 32 |
&& echo "user:user123" | chpasswd \
|
|
|
|
| 43 |
# ---- workspace + code-server extensions ----
|
| 44 |
RUN mkdir -p /home/user/workspace /home/user/.local/share/code-server
|
| 45 |
|
|
|
|
| 46 |
RUN code-server --install-extension ms-python.python \
|
| 47 |
&& code-server --install-extension esbenp.prettier-vscode \
|
| 48 |
&& code-server --install-extension bradlc.vscode-tailwindcss \
|