Skip to content

Commit

Permalink
Updare dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Sapezhko committed Jul 21, 2024
1 parent 44447ec commit 2239247
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ ARG POETRY_VERSION

ENV PATH=/root/.local/bin:$PATH
RUN --mount=type=tmpfs,target=/root/.cargo --mount=type=bind,source=install.py,target=/install.py set -eux; \
if grep -q debian /etc/os-release; then \
POETRY_VERSION=$POETRY_VERSION python /install.py || cat /poetry-installer-error-*.log ; \
else \
if grep -q alpine /etc/os-release ; then \
apk add --no-cache --virtual .build-deps \
cargo \
g++ \
Expand All @@ -20,6 +18,28 @@ RUN --mount=type=tmpfs,target=/root/.cargo --mount=type=bind,source=install.py,t
; \
POETRY_VERSION=$POETRY_VERSION python /install.py || cat /poetry-installer-error-*.log ; \
apk del --no-network .build-deps; \
else \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cargo \
g++ \
gcc \
libffi-dev \
libssl-dev \
pkg-config \
; \
POETRY_VERSION=$POETRY_VERSION python /install.py || cat /poetry-installer-error-*.log ; \
apt-get purge -y \
build-essential \
cargo \
g++ \
gcc \
libffi-dev \
libssl-dev \
pkg-config \
; \
apt-get autoremove -y ; \
rm -rf /var/lib/apt/lists/* ; \
fi ; \
poetry --version

Expand Down

0 comments on commit 2239247

Please sign in to comment.