Skip to content

Commit

Permalink
Merge pull request #9 from kaiehrhardt/add-pip-to-prod
Browse files Browse the repository at this point in the history
add py3-pip to production image
  • Loading branch information
cytopia authored Mar 30, 2021
2 parents 1cc5773 + aa4648d commit 4452917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ LABEL "org.opencontainers.image.title"="pylint ${VERSION}"
LABEL "org.opencontainers.image.description"="pylint ${VERSION}"

RUN set -x \
&& apk add --no-cache python3 \
&& apk add --no-cache python3 py3-pip \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf

Expand Down

0 comments on commit 4452917

Please sign in to comment.