Skip to content

Commit

Permalink
fix: merge in one command and delete .build-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed May 4, 2024
1 parent 66a381f commit b2ef3eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Resources/docker/app/Dockerfile
Expand Up @@ -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 && \
Expand Down

0 comments on commit b2ef3eb

Please sign in to comment.