diff --git a/Dockerfile b/Dockerfile index cc88883..d1425c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM tiangolo/uwsgi-nginx-flask:python3.10 +FROM tiangolo/meinheld-gunicorn-flask:python3.9 RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db RUN curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash @@ -7,6 +7,8 @@ RUN apt-get update RUN apt-get upgrade -y RUN apt-get dist-upgrade -COPY ./backend /app +COPY ./backend/requirements.txt /app/requirements.txt -RUN pip install -r /app/requirements.txt \ No newline at end of file +RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt + +COPY ./backend /app \ No newline at end of file