@@ -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" ]
|
||||
@@ -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)
|
||||
@@ -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 |
@@ -0,0 +1,7 @@
|
||||
version: '3'
|
||||
services:
|
||||
13ft:
|
||||
build: .
|
||||
#image: your-image-name:tag
|
||||
ports:
|
||||
- "5000:5000"
|
||||
@@ -1 +0,0 @@
|
||||
flask
|
||||