fix(Dockerfile): Cleanup for dockerfile

This commit is contained in:
Luka Radenovic 2021-11-02 09:51:44 +01:00
parent 927ef220cd
commit 65cb1a1c7a

View file

@ -1,7 +1,7 @@
FROM python:3.10-slim
RUN apt-get update
RUN apt-get install -y libpq-dev python-dev gcc
RUN apt-get install -y gcc
## make a local directory
RUN mkdir /app
@ -12,9 +12,6 @@ WORKDIR /app
# copy requirements.txt to /app
ADD requirements.txt .
# required to be able to install old MarkupSafe==1.0.0 version
RUN pip install --upgrade pip setuptools==45.2.0
# pip install the local requirements.txt
RUN pip install -r requirements.txt