file_extension_change / Dockerfile
euler314's picture
Update Dockerfile
fb70a1b verified
raw
history blame
473 Bytes
# ---- Dockerfile ----
FROM python:3.9-slim
# --- Environment ---
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
STREAMLIT_HOME=/tmp/.streamlit \
HOME=/tmp
RUN mkdir -p $STREAMLIT_HOME
# --- Install dependencies ---
RUN pip install --no-cache-dir streamlit==1.45.1
# --- Copy app code ---
COPY app.py /app/app.py
WORKDIR /app
# --- Run the app ---
# Hugging Face Spaces expects port 7860 for Docker SDK
EXPOSE 7860
CMD ["streamlit", "run", "app.py"]