Skip to content

Commit 7eb7d35

Browse files
committed
Use absolute path instead of tilde
1 parent 805922e commit 7eb7d35

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

amzn2023/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
22

3-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
4-
ENV PATH="~/.cargo/bin:${PATH}"
5-
6-
RUN ~/.cargo/bin/rustup update \
7-
&& ~/.cargo/bin/rustup target add aarch64-unknown-linux-gnu
8-
9-
RUN rustup default stable
10-
113
# Install required build dependencies
124
RUN dnf install -y gcc openssl-devel python3-pip util-linux && \
135
pip3 install setuptools && \
146
dnf clean all
157

8+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9+
ENV PATH="/root/.cargo/bin:${PATH}"
10+
11+
RUN /root/.cargo/bin/rustup update \
12+
&& /root/.cargo/bin/rustup target add aarch64-unknown-linux-gnu \
13+
&& /root/.cargo/bin/rustup default stable
14+
1615
ENV CRYPTEIA_BUILD_OS=amzn
1716
ENV CRYPTEIA_BUILD_TARGET=x86_64-unknown-linux-gnu
1817

amzn2023/Dockerfile-arm64

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
22

3-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
4-
ENV PATH="~/.cargo/bin:${PATH}"
5-
6-
RUN ~/.cargo/bin/rustup update \
7-
&& ~/.cargo/bin/rustup target add aarch64-unknown-linux-gnu
8-
9-
RUN rustup default stable
10-
113
# Install required build dependencies
124
RUN dnf install -y gcc openssl-devel python3-pip util-linux && \
135
pip3 install setuptools && \
146
dnf clean all
157

8+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9+
ENV PATH="/root/.cargo/bin:${PATH}"
10+
11+
RUN /root/.cargo/bin/rustup update \
12+
&& /root/.cargo/bin/rustup target add aarch64-unknown-linux-gnu \
13+
&& /root/.cargo/bin/rustup default stable
14+
1615
ENV CRYPTEIA_BUILD_OS=amzn
1716
ENV CRYPTEIA_BUILD_TARGET=aarch64-unknown-linux-gnu

0 commit comments

Comments
 (0)