Spaces:
Running on Zero
Running on Zero
Removed Docker
Browse files- Dockerfile +0 -20
Dockerfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
# Create a non-root user matching Hugging Face internal permissions
|
| 4 |
-
RUN useradd -m -u 1000 user
|
| 5 |
-
USER user
|
| 6 |
-
ENV HOME=/home/user \
|
| 7 |
-
PATH=/home/user/.local/bin:$PATH
|
| 8 |
-
|
| 9 |
-
# Set the working directory inside the container's user space
|
| 10 |
-
WORKDIR $HOME/app
|
| 11 |
-
|
| 12 |
-
# Copy requirements and install dependencies into user space
|
| 13 |
-
COPY --chown=user requirements.txt $HOME/app/requirements.txt
|
| 14 |
-
RUN pip install --no-cache-dir --user --upgrade -r $HOME/app/requirements.txt
|
| 15 |
-
|
| 16 |
-
# Copy all your local source code folders into the container
|
| 17 |
-
COPY --chown=user . $HOME/app
|
| 18 |
-
|
| 19 |
-
# Run uvicorn pointing to your app file inside the code directory
|
| 20 |
-
CMD ["uvicorn", "code.app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|