fix: merge in one command and delete .build-deps

This commit is contained in:
Naramsim 2024-05-04 22:09:03 +02:00
parent 66a381fa51
commit b2ef3eba0f

View file

@ -8,9 +8,10 @@ WORKDIR /code
ADD requirements.txt /code/
RUN apk add --no-cache postgresql-libs libstdc++
RUN apk add --no-cache --virtual .build-deps gcc g++ musl-dev postgresql-dev rust cargo
RUN python3 -m pip install -r requirements.txt --no-cache-dir
RUN apk --purge del .build-deps
RUN apk add --no-cache --virtual .build-deps gcc g++ musl-dev \
postgresql-dev rust cargo && \
python3 -m pip install -r requirements.txt --no-cache-dir && \
apk --purge del .build-deps
ADD . /code/
RUN addgroup -g 1000 -S pokeapi && \