Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -24
Dockerfile
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# Install dependencies
|
| 6 |
-
COPY requirements.txt .
|
| 7 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
-
|
| 9 |
-
# Copy application files
|
| 10 |
-
COPY . .
|
| 11 |
-
|
| 12 |
-
# Create a user to avoid running as root (Good practice for HF)
|
| 13 |
-
RUN useradd -m -u 1000 user
|
| 14 |
-
USER user
|
| 15 |
-
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
| 16 |
-
|
| 17 |
-
# Expose port (HF expects 7860 usually, but we can configure whatever)
|
| 18 |
-
# Actually, HF Spaces map port 7860 by default for Gradio/Streamlit,
|
| 19 |
-
# for Docker we must listen on 7860.
|
| 20 |
-
EXPOSE 7860
|
| 21 |
-
|
| 22 |
-
# Command to run
|
| 23 |
-
# We must launch uvicorn on 0.0.0.0:7860
|
| 24 |
-
CMD ["uvicorn", "chiral_api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|