File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM bionic
2
2
3
3
ENV TZ=UTC
4
4
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
+ ENV RUST_PROFILE=release
6
+ ENV PATH=/root/.cargo/bin:/root/.pyenv/shims:/root/.pyenv/bin:$PATH
5
7
6
8
RUN sed -i '/updates/d' /etc/apt/sources.list && \
7
9
sed -i '/security/d' /etc/apt/sources.list
@@ -25,7 +27,6 @@ RUN apt-get update \
25
27
# Need to fetch a python version that is >= 3.7 since that's the
26
28
# lowest version supported by pyln. This is just temporary until we
27
29
# drop support for ubuntu 18.04
28
- ENV PATH=/root/.pyenv/shims:/root/.pyenv/bin:$PATH
29
30
RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv \
30
31
&& apt-get install -y --no-install-recommends \
31
32
libbz2-dev \
@@ -41,6 +42,11 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp
41
42
&& rm /tmp/get-pip.py \
42
43
&& pip install poetry
43
44
45
+ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
46
+ bash rustup-install.sh --default-toolchain none --quiet -y && \
47
+ rm rustup-install.sh && \
48
+ /root/.cargo/bin/rustup install 1.62
49
+
44
50
RUN mkdir /build
45
51
WORKDIR /build
46
52
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM focal
2
2
3
3
ENV TZ=UTC
4
4
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
+ ENV RUST_PROFILE=release
6
+ ENV PATH=/root/.cargo/bin:$PATH
5
7
6
8
RUN sed -i '/updates/d' /etc/apt/sources.list && \
7
9
sed -i '/security/d' /etc/apt/sources.list
@@ -29,6 +31,11 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp
29
31
&& rm /tmp/get-pip.py \
30
32
&& pip install poetry
31
33
34
+ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
35
+ bash rustup-install.sh --default-toolchain none --quiet -y && \
36
+ rm rustup-install.sh && \
37
+ /root/.cargo/bin/rustup install 1.62
38
+
32
39
RUN mkdir /build
33
40
WORKDIR /build
34
41
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM jammy
2
2
3
3
ENV TZ=UTC
4
4
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
+ ENV RUST_PROFILE=release
6
+ ENV PATH=/root/.cargo/bin:$PATH
5
7
6
8
RUN sed -i '/updates/d' /etc/apt/sources.list && \
7
9
sed -i '/security/d' /etc/apt/sources.list
@@ -29,6 +31,11 @@ RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp
29
31
&& rm /tmp/get-pip.py \
30
32
&& pip install poetry
31
33
34
+ RUN wget https://sh.rustup.rs -O rustup-install.sh && \
35
+ bash rustup-install.sh --default-toolchain none --quiet -y && \
36
+ rm rustup-install.sh && \
37
+ /root/.cargo/bin/rustup install 1.62
38
+
32
39
RUN mkdir /build
33
40
WORKDIR /build
34
41
You can’t perform that action at this time.
0 commit comments