mirror of
https://github.com/bszczuka/steel-training.git
synced 2025-12-21 13:23:02 +01:00
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
2
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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user