Quantum-API / Dockerfile
subatomicERROR's picture
Added Dockerfile and start.sh for Hugging Face deployment: FastAPI on 7860, Streamlit on 8000
29725ad
raw
history blame
465 Bytes
# Use official slim Python 3.12 image
FROM python:3.12-slim
# Set working directory inside the container
WORKDIR /app
# Copy all project files into the container
COPY . /app
# Ensure start.sh is executable
RUN chmod +x /app/start.sh
# Install required Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Expose FastAPI on port 7860 and Streamlit on port 8000
EXPOSE 7860
EXPOSE 8000
# Launch both servers using start.sh
CMD ["/app/start.sh"]