Skip to content

Commit

Permalink
Updated docker file to solve problem: https://peps.python.org/pep-0668/
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinaum8 committed Jul 8, 2024
1 parent 65e8729 commit b05ca0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ WORKDIR /app
# Instala as dependências necessárias
RUN apk --no-cache add curl openssh-client python3 py3-pip

# https://elliottback.medium.com/python-this-environment-is-externally-managed-error-and-docker-6062aac20a6e
# https://peps.python.org/pep-0668/
RUN rm /usr/lib/python*/EXTERNALLY-MANAGED

# Instala a CLI do Azure
RUN apk --no-cache add --virtual .build-deps gcc libffi-dev musl-dev openssl-dev python3-dev \
&& pip3 install azure-cli \
Expand All @@ -16,4 +20,4 @@ RUN if [ -f .env ]; then \
cp .env /app/.env; \
fi

CMD ["bash", "./acr-cleanup.sh"]
CMD ["bash", "./acr-cleanup.sh"]

0 comments on commit b05ca0a

Please sign in to comment.