fix: add rust and cargo

This commit is contained in:
Naramsim 2024-05-04 21:53:02 +02:00
parent 8276c42823
commit 69a10a04c8

View file

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