Merge pull request #1 from recklessop/dockerized

Dockerized 13ft
This commit is contained in:
Justin Paul
2023-10-31 09:33:47 -04:00
committed by GitHub
11 changed files with 17 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM python:3.9.18-alpine
COPY /app /app
WORKDIR /app
RUN pip install -r requirements.txt
EXPOSE 5000
ENTRYPOINT [ "python" ]
CMD [ "portable.py" ]
View File
View File
+1 -1
View File
@@ -130,4 +130,4 @@ def get_article(path):
return "Invalid URL", 400
app.run(debug=False)
app.run(host='0.0.0.0', port=5000, debug=False)
+2
View File
@@ -0,0 +1,2 @@
flask
requests

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Before

Width:  |  Height:  |  Size: 9.9 MiB

After

Width:  |  Height:  |  Size: 9.9 MiB

+7
View File
@@ -0,0 +1,7 @@
version: '3'
services:
13ft:
build: .
#image: your-image-name:tag
ports:
- "5000:5000"
-1
View File
@@ -1 +0,0 @@
flask