Commit
·
2ebc61b
1
Parent(s):
5be4f68
fix and test docker image.
Browse files- Dockerfile +2 -2
- docker-compose.yml +1 -1
- main.py +1 -1
Dockerfile
CHANGED
|
@@ -16,8 +16,8 @@ RUN apt-get update && \
|
|
| 16 |
# Install any needed packages specified in requirements.txt
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
-
# Make port
|
| 20 |
-
EXPOSE
|
| 21 |
|
| 22 |
# Run main.py when the container launches
|
| 23 |
CMD ["python", "main.py"]
|
|
|
|
| 16 |
# Install any needed packages specified in requirements.txt
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
+
# Make port 8000 available to the world outside this container
|
| 20 |
+
EXPOSE 8000
|
| 21 |
|
| 22 |
# Run main.py when the container launches
|
| 23 |
CMD ["python", "main.py"]
|
docker-compose.yml
CHANGED
|
@@ -6,6 +6,6 @@ services:
|
|
| 6 |
context: .
|
| 7 |
dockerfile: Dockerfile
|
| 8 |
ports:
|
| 9 |
-
- "
|
| 10 |
volumes:
|
| 11 |
- .:/app
|
|
|
|
| 6 |
context: .
|
| 7 |
dockerfile: Dockerfile
|
| 8 |
ports:
|
| 9 |
+
- "8000:8000"
|
| 10 |
volumes:
|
| 11 |
- .:/app
|
main.py
CHANGED
|
@@ -128,4 +128,4 @@ async def process_video_api(video_file: MP4Video = Depends(),
|
|
| 128 |
|
| 129 |
if __name__ == "__main__":
|
| 130 |
# Use Uvicorn to run the application
|
| 131 |
-
uvicorn.run(app, host="
|
|
|
|
| 128 |
|
| 129 |
if __name__ == "__main__":
|
| 130 |
# Use Uvicorn to run the application
|
| 131 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|