Spaces:
Paused
Paused
File size: 457 Bytes
a8ac603 4e98c18 a8ac603 c41baaa a8ac603 c41baaa 18e66f1 4e98c18 a8ac603 c41baaa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use a lightweight Python image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
SHELL=/bin/bash
# Set the working directory
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app.py file into the container
COPY app.py .
# Expose the default MLflow port
EXPOSE 7860
# Set the command to run the app
CMD ["python", "app.py"]
|