Merge pull request #1 from Dropsik/master

Dockerized version
This commit is contained in:
bszczuka
2024-11-28 13:01:59 +01:00
committed by GitHub
3 changed files with 12 additions and 2 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3.10-alpine
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN apk add pango libffi fontconfig ttf-freefont
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 5000
ENTRYPOINT [ "python" ]
CMD [ "app.py" ]

2
app.py
View File

@@ -418,4 +418,4 @@ def calculate_distance_shootoff(desired_wall_length, size, target_count):
return distance return distance
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run(host='0.0.0.0')

View File

@@ -1,9 +1,10 @@
Flask-Babel==2.0.0
blinker==1.8.2 blinker==1.8.2
Brotli==1.1.0 Brotli==1.1.0
cffi==1.17.0 cffi==1.17.0
click==8.1.7 click==8.1.7
cssselect2==0.7.0 cssselect2==0.7.0
Flask==3.0.3 Flask==2.3.3
fonttools==4.53.1 fonttools==4.53.1
html5lib==1.1 html5lib==1.1
itsdangerous==2.2.0 itsdangerous==2.2.0