Skip to content

Commit

Permalink
Update Dockerfile to new repository URL, add dependencies
Browse files Browse the repository at this point in the history
- Debian stretch has moved to archive.debian.org as of late April 2023
- Fix a version conflict with libssl1.1
- Add python3, as required by the rust build script

Relates to #72
  • Loading branch information
maxims94 authored and dmakarov committed Jan 25, 2024
1 parent 05c0b45 commit b5114e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ LABEL maintainer "Solana Maintainers"
#RUN gpg --no-tty --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684

# Install build dependencies of rust.
# First, Update the apt's source list and include the sources of the packages.
RUN grep deb /etc/apt/sources.list | \
sed 's/^deb/deb-src /g' >> /etc/apt/sources.list
# Replace the original sources.list with archive.debian.org, since as of April 2023, Debian stretch has been moved there from the main repository
RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list

# Install compiler, python and subversion.
RUN apt-get update && \
apt-get install -y \
--no-install-recommends \
--allow-downgrades \
ca-certificates gnupg \
build-essential \
python \
Expand All @@ -29,7 +29,9 @@ RUN apt-get update && \
clang \
ssh \
openssl \
libssl-dev && \
libssl1.1=1.1.0l-1~deb9u1 \
libssl-dev \
python3 && \
rm -rf /var/lib/apt/lists/* && \
apt-get update && \
apt-get install -y pkg-config
Expand Down

0 comments on commit b5114e6

Please sign in to comment.