Sanket17 commited on
Commit
30bfb87
·
verified ·
1 Parent(s): dd3e0e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -16,9 +16,10 @@ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy application files
18
  COPY main.py main.py
 
19
 
20
  # Expose application port
21
  EXPOSE 7860
22
 
23
  # Set the entrypoint for the container
24
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
16
 
17
  # Copy application files
18
  COPY main.py main.py
19
+ COPY weights.py weights.py
20
 
21
  # Expose application port
22
  EXPOSE 7860
23
 
24
  # Set the entrypoint for the container
25
+ CMD ["bash", "-c", "python weights.py && uvicorn main:app --host 0.0.0.0 --port 7860"]