modernizing the dependencies
This commit is contained in:
1 parent
a1c6b656d7
commit
2bd853e9b5
12 files changed
+33
-36
No files matched your search
+4
-9
@@ -1,12 +1,7 @@
|
||||
FROM python:3.8.12-slim-buster
|
||||
FROM python:3.15-slim-trixie
|
||||
|
||||
RUN apt-get -y update && apt-get -y upgrade && \
|
||||
apt-get install --no-install-recommends -y wait-for-it lsb-release wget gnupg2 gcc libpq-dev libc-dev vim
|
||||
|
||||
# install psql 13 (11 is the default with debian)
|
||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
||||
RUN apt-get update && apt-get --no-install-recommends -y install postgresql-client-13 && apt-get clean all
|
||||
RUN apt -y update && apt -y upgrade && \
|
||||
apt install --no-install-recommends -y wait-for-it lsb-release wget gnupg2 gcc libpq-dev libc-dev vim postgresql-client && apt clean all
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -16,7 +11,7 @@ RUN pip install -U -r requirements.txt -r requirements-dev.txt
|
||||
|
||||
RUN mkdir log
|
||||
|
||||
ENV PYTHONPATH /app/
|
||||
ENV PYTHONPATH=/app/
|
||||
ENV FLASK_APP=max.app
|
||||
ENV FLASK_ENV=development
|
||||
|
||||
|
||||
Reference in new issue
Block a user