File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,19 @@ RUN meson _build --prefix=/usr -Dgtk_doc=false -Dintrospection=disabled -Dbuild-
12
12
RUN ninja -C _build
13
13
RUN ninja -C _build install
14
14
15
+ # set up a user
16
+ ARG HOST_USER_ID=5555
17
+ ENV HOST_USER_ID ${HOST_USER_ID}
18
+ RUN useradd -u $HOST_USER_ID -ms /bin/bash user
19
+
20
+ USER user
21
+ WORKDIR /home/user
22
+
23
+ # install rust stable/nightly/beta/latest supported version
24
+
15
25
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
16
- ENV PATH="$HOME/.cargo/bin/:${PATH}"
26
+ ENV PATH="/home/user/.cargo/bin:${PATH}"
27
+
17
28
RUN rustup toolchain install stable --profile minimal --allow-downgrade -c clippy -c rustfmt
18
29
RUN rustup toolchain install beta --profile minimal --allow-downgrade -c clippy -c rustfmt
19
30
RUN rustup toolchain install nightly --profile minimal --allow-downgrade -c clippy -c rustfmt
You can’t perform that action at this time.
0 commit comments