updated requirements && use FROM python:alpine

This commit is contained in:
draxaris1010 2024-10-04 17:14:53 +02:00
parent d7c9800856
commit 53b468feda
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