Models / Dockerfile
benresnic's picture
Update Dockerfile
6001e98 verified
Raw History Blame Contribute Delete
338 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
# Install python deps
RUN pip install --no-cache-dir \
shiny \
starlette \
uvicorn \
huggingface_hub
# Copy app
COPY app.py /app/app.py
EXPOSE 7860
CMD ["python", "-m", "shiny", "run", "--host", "0.0.0.0", "--port", "7860", "app.py"]