From 53b468feda5a566083f6b12f61eab15c4bbc8ea4 Mon Sep 17 00:00:00 2001 From: draxaris1010 Date: Fri, 4 Oct 2024 17:14:53 +0200 Subject: [PATCH] updated requirements && use FROM python:alpine --- Dockerfile | 13 ++----------- requirements.txt | 5 +++++ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7604c65..758698d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/requirements.txt b/requirements.txt index 61a6a90..374c4ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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