Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -9,14 +9,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
9 |
|
10 |
RUN mkdir -p $STREAMLIT_HOME
|
11 |
|
12 |
-
# --- Install
|
13 |
-
RUN pip install --no-cache-dir streamlit==1.45.1
|
14 |
|
15 |
-
# --- Copy
|
16 |
COPY app.py /app/app.py
|
17 |
WORKDIR /app
|
18 |
|
19 |
# --- Run the app ---
|
20 |
-
# Hugging Face Spaces expects port 7860 for Docker SDK
|
21 |
EXPOSE 7860
|
22 |
CMD ["streamlit", "run", "app.py"]
|
|
|
9 |
|
10 |
RUN mkdir -p $STREAMLIT_HOME
|
11 |
|
12 |
+
# --- Install deps ---
|
13 |
+
RUN pip install --no-cache-dir streamlit==1.45.1 pillow
|
14 |
|
15 |
+
# --- Copy code ---
|
16 |
COPY app.py /app/app.py
|
17 |
WORKDIR /app
|
18 |
|
19 |
# --- Run the app ---
|
|
|
20 |
EXPOSE 7860
|
21 |
CMD ["streamlit", "run", "app.py"]
|