Skip to content

Commit

Permalink
Trying to fix debian/pip issue
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Aug 20, 2024
1 parent 81f9640 commit 8b8014d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,22 @@ RUN curl -fsSLO https://dot.net/v1/dotnet-install.sh \

ENV GOLANG_VERSION 1.22
RUN apt -y update && apt -y upgrade && apt -y install \
python3 \
python3-venv \
ca-certificates \
python3-pip && \
python3.12\
python3.12-venv \
python-is-python3 \
ca-certificates && \
apt -y install -t unstable \
golang-$GOLANG_VERSION \
openjdk-21-jre && \
apt -y clean && rm -rf /var/lib/apt/lists/* && \
# Symlink pip3 to pip, we assume that "pip" works in CLI
ln -sf /usr/bin/pip3 /usr/bin/pip && \
ln -sf /usr/bin/python3 /usr/bin/python && \
# Symlink go binary to bin directory which is in path
ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go

RUN ln -s /usr/local/bin/python3.12 /usr/local/bin/python

RUN python --version
RUN pip list

RUN dotnet --version

RUN apt update -y && \
Expand All @@ -125,6 +127,9 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -

RUN php -v && composer --version

RUN which python
RUN apt list --installed

CMD [ "debricked", "scan" ]

# Put copy at the end to speedup Docker build by caching previous RUNs and run those concurrently
Expand Down

0 comments on commit 8b8014d

Please sign in to comment.