Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +4 -4
- requirements.txt +8 -7
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use
|
| 2 |
-
FROM python:3.
|
| 3 |
|
| 4 |
# Set the working directory inside the container to /app
|
| 5 |
WORKDIR /app
|
|
@@ -8,12 +8,12 @@ WORKDIR /app
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# Install Python dependencies listed in requirements.txt
|
| 11 |
-
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
USER user
|
| 15 |
ENV HOME=/home/user \
|
| 16 |
-
|
| 17 |
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|
|
|
|
| 1 |
+
# Use Python 3.11 for better compatibility
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set the working directory inside the container to /app
|
| 5 |
WORKDIR /app
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# Install Python dependencies listed in requirements.txt
|
| 11 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
USER user
|
| 15 |
ENV HOME=/home/user \
|
| 16 |
+
PATH=/home/user/.local/bin:$PATH
|
| 17 |
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|
requirements.txt
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
-
pandas==2.
|
| 2 |
-
huggingface_hub==0.
|
| 3 |
-
streamlit==1.
|
| 4 |
-
joblib==1.
|
| 5 |
-
scikit-learn==1.
|
| 6 |
-
mlflow==
|
| 7 |
-
numpy==
|
|
|
|
|
|
| 1 |
+
pandas==2.1.4
|
| 2 |
+
huggingface_hub==0.20.3
|
| 3 |
+
streamlit==1.28.2
|
| 4 |
+
joblib==1.3.2
|
| 5 |
+
scikit-learn==1.3.2
|
| 6 |
+
mlflow==2.11.3
|
| 7 |
+
numpy==1.26.0
|
| 8 |
+
protobuf==4.25.3
|