Spaces:
Runtime error
Runtime error
MrSiebel585
commited on
Commit
·
b90b4c2
1
Parent(s):
231d9a1
Switch entrypoint to Streamlit UI
Browse files- Dockerfile +0 -5
Dockerfile
CHANGED
|
@@ -1,21 +1,16 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
# Create non-root user
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
USER user
|
| 6 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
# Install dependencies
|
| 11 |
COPY --chown=user requirements.txt requirements.txt
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
# Copy project files
|
| 15 |
COPY --chown=user . /app
|
| 16 |
|
| 17 |
-
# Hugging Face requires port 7860
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
-
# Run Streamlit as the entrypoint
|
| 21 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
|
|
|
| 9 |
COPY --chown=user requirements.txt requirements.txt
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
|
|
|
| 12 |
COPY --chown=user . /app
|
| 13 |
|
|
|
|
| 14 |
EXPOSE 7860
|
| 15 |
|
|
|
|
| 16 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|