AlyanAkram commited on
Commit
509fcc5
·
verified ·
1 Parent(s): a0c88d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,9 +1,14 @@
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /
 
 
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
6
 
7
- COPY app app
 
8
 
9
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Use root as working directory
4
  WORKDIR /
5
+
6
+ # Install dependencies
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy all files into the container root
11
+ COPY . .
12
 
13
+ # Run the FastAPI app from root
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]