optimize dockerfile #2

Merged
fk merged 1 commit from axdzitte/ceneka-bot-battle:main into main 2024-10-04 18:15:47 +02:00
2 changed files with 7 additions and 11 deletions
Showing only changes of commit 53b468feda - Show all commits

View file

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

View file

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