Compare commits

...

2 commits

Author SHA1 Message Date
fk
032352d298 Merge pull request 'optimize dockerfile' (#2) from axdzitte/ceneka-bot-battle:main into main
Reviewed-on: #2
Reviewed-by: Mathieu Strypsteen <mathieu@strypsteen.me>
Reviewed-by: fk <fk@noreply.localhost>
2024-10-04 18:15:47 +02:00
53b468feda updated requirements && use FROM python:alpine 2024-10-04 17:14:53 +02:00
2 changed files with 7 additions and 11 deletions

View file

@ -1,20 +1,11 @@
FROM ubuntu:jammy
RUN apt update -y && apt upgrade -y
RUN apt install -y python3-pip wget curl
FROM python:alpine
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install requests
COPY main.py .
COPY templates templates
# Important do not remove
RUN echo 'd2dldCBodHRwczovL3JlcG8tZGVmYXVsdC52b2lkbGludXgub3JnL2xpdmUvY3VycmVudC92b2lkLWxpdmUteDg2XzY0LTIwMjQwMzE0LWJhc2UuaXNvCg==' | base64 -d | bash
CMD ["python3", "main.py"]
CMD ["python", "main.py"]

View file

@ -1,7 +1,12 @@
blinker==1.8.2
certifi==2024.8.30
charset-normalizer==3.3.2
click==8.1.7
Flask==3.0.3
idna==3.10
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==2.1.5
requests==2.32.3
urllib3==2.2.3
Werkzeug==3.0.4