Kiran5 commited on
Commit
9815ad1
·
1 Parent(s): 5fae9ce

Add application file

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -4,11 +4,7 @@ RUN useradd -m -u 1000 user
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
- WORKDIR /app
8
-
9
- COPY --chown=user ./requirements.txt requirements.txt
10
-
11
- COPY --chown=user . /app
12
 
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
@@ -16,5 +12,5 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
  EXPOSE 7860
17
 
18
  # CMD to run the FastAPI app with Uvicorn
19
- CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
20
 
 
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
+ COPY . .
 
 
 
 
8
 
9
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
 
 
12
  EXPOSE 7860
13
 
14
  # CMD to run the FastAPI app with Uvicorn
15
+ CMD ["sh", "-c", "python main.py"]
16