recipe_assistant / Dockerfile
whitney-house
dockefile
2fc7a99
raw
history blame contribute delete
352 Bytes
# Use Python 3.9 as the base image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy the backend code
COPY backend/ /app/
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the FastAPI port
EXPOSE 8000
# Run the FastAPI server
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]