Fix Dockerfile CMD and add .dockerignore
Browse files- .dockerignore +7 -0
- 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"]
|