cwadayi commited on
Commit
c472fc7
·
verified ·
1 Parent(s): 7c69a57

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -9,9 +9,14 @@ ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
  WORKDIR /app
11
 
 
 
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
 
15
  COPY --chown=user . /app
16
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
17
 
 
 
 
9
 
10
  WORKDIR /app
11
 
12
+ # Copy requirements.txt and install Python dependencies
13
+ # No special SQLite packages needed for basic sqlite3,
14
+ # but if you use an ORM like SQLAlchemy, add it here.
15
  COPY --chown=user ./requirements.txt requirements.txt
16
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
+ # Copy your application code
19
  COPY --chown=user . /app
 
20
 
21
+ # Command to run your API
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]