Spaces:
Sleeping
Sleeping
File size: 645 Bytes
f825da9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# Use the official Python image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the application files into the container
COPY . /app
# Install pip and dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Set environment variables
ENV WANDB_API_KEY="your_wandb_api_key"
ENV MODIN_ENGINE="dask"
# Expose the port that FastAPI runs on
EXPOSE 7860
# Start the Gradio app
CMD ["python", "-m", "gradio", "run", "your_script.py"]
|