AnnsKhan commited on
Commit
f825da9
·
1 Parent(s): 4ef1dbe

dockerfile

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