huggingface_frontend / Dockerfile
molehh's picture
frontend deploy
1a3780c
raw
history blame contribute delete
543 Bytes
# Use Python 3.11 as the base image
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# Copy all project files into the container
COPY . /app
# Install dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Set PYTHONPATH so FastAPI can find the 'backend' module
ENV PYTHONPATH=/app
# Expose the port that Streamlit runs on
EXPOSE 7860
# Run Streamlit when the container starts
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]