diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6d1f92 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/app.py b/app.py index e6b57e7..decc5da 100644 --- a/app.py +++ b/app.py @@ -418,4 +418,4 @@ def calculate_distance_shootoff(desired_wall_length, size, target_count): return distance if __name__ == '__main__': - app.run(debug=True) + app.run(host='0.0.0.0') diff --git a/requirements.txt b/requirements.txt index ce2396f..e25ccad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,10 @@ +Flask-Babel==2.0.0 blinker==1.8.2 Brotli==1.1.0 cffi==1.17.0 click==8.1.7 cssselect2==0.7.0 -Flask==3.0.3 +Flask==2.3.3 fonttools==4.53.1 html5lib==1.1 itsdangerous==2.2.0