FrontEndFlaskAPI / Dockerfile
MainiSandeep1987's picture
Upload folder using huggingface_hub
fcbe7bd verified
raw
history blame
461 Bytes
# FROM python:3.9-slim
# WORKDIR /app
# COPY . .
# COPY requirements.txt .
# COPY app.py .
# RUN pip install --no-cache-dir --upgrade -r requirements.txt
# CMD ["streamlit", "run", "app.py", "server.address=0.0.0.0", "server.port=8501"]
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
CMD ["streamlit", "run", "app.py", "--server.port=7861", "--server.address=0.0.0.0"]