Nanny7 commited on
Commit
fababb6
·
1 Parent(s): 3d47de5

Fix Dockerfile CMD and add .dockerignore

Browse files
Files changed (2) hide show
  1. .dockerignore +7 -0
  2. Dockerfile +1 -1
.dockerignore ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ .git
4
+ .gitignore
5
+ .env.example
6
+ Dockerfile.test
7
+ test_app.py
Dockerfile CHANGED
@@ -13,4 +13,4 @@ COPY ./src ./src
13
  EXPOSE 7860
14
 
15
  # Run the application
16
- CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  EXPOSE 7860
14
 
15
  # Run the application
16
+ CMD ["python", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]