materials-ai-app / Dockerfile
mgbam's picture
Add application file
4fe5752
raw
history blame contribute delete
482 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy app code
COPY . .
# Expose the port FastAPI uses
EXPOSE 8000
# Run the FastAPI app and the Gradio demo concurrently using a process manager (or choose one)
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]