Spaces:
Sleeping
Sleeping
Mimi
commited on
Commit
·
56b0032
1
Parent(s):
974ec25
dockers fixed
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -2,11 +2,11 @@ FROM python:3.12
|
|
| 2 |
|
| 3 |
# Add user
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
-
WORKDIR
|
| 6 |
|
| 7 |
COPY --chown=user . $HOME/app
|
| 8 |
# Install system dependencies and requirements
|
| 9 |
-
RUN pip install --no-cache-dir -r
|
| 10 |
huggingface-cli login --token $HF_TOKEN
|
| 11 |
|
| 12 |
USER user
|
|
|
|
| 2 |
|
| 3 |
# Add user
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
+
WORKDIR /app
|
| 6 |
|
| 7 |
COPY --chown=user . $HOME/app
|
| 8 |
# Install system dependencies and requirements
|
| 9 |
+
RUN pip install --no-cache-dir -r app/requirements.txt && \
|
| 10 |
huggingface-cli login --token $HF_TOKEN
|
| 11 |
|
| 12 |
USER user
|