Update dependencies and fix deprecations

This commit is contained in:
Lexi / Zoe 2022-09-17 16:42:38 +02:00
parent 0d4fbef13d
commit 19d264a03b
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
8 changed files with 154 additions and 131 deletions

View file

@ -8,13 +8,16 @@ RUN echo Creating dev user with UID $DEV_USER_UID && \
USER dev
ENV PATH="/home/dev/.local/bin:${PATH}"
# Don't write bytecode cache files
ENV PYTHONDONTWRITEBYTECODE=1
# Install pipenv to generate requirements.txt from Pipfile
RUN pip install pipenv
# Generate requirements.txt and install dependencies with pip
WORKDIR /app
COPY Pipfile Pipfile.lock ./
RUN pipenv lock --requirements --dev > tmp_requirements.txt && \
RUN pipenv requirements --dev > tmp_requirements.txt && \
pip install -r tmp_requirements.txt
# Set default command