Skip to content

Commit

Permalink
image: revert to before installing rust
Browse files Browse the repository at this point in the history
it seems like github wants a specific user config setup, too much work to do the same day of the release
  • Loading branch information
bilelmoussaoui authored Jan 14, 2022
1 parent 1264674 commit eda3b8f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,3 @@ WORKDIR /tmp/gtk-4.6.0
RUN meson _build --prefix=/usr -Dgtk_doc=false -Dintrospection=disabled -Dbuild-examples=false -Dbuild-tests=false -Ddemos=false
RUN ninja -C _build
RUN ninja -C _build install

# set up a user
ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user

USER user
WORKDIR /home/user

# install rust stable/nightly/beta/latest supported version

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
ENV PATH="/home/user/.cargo/bin:${PATH}"

RUN rustup toolchain install stable --profile minimal --allow-downgrade -c clippy -c rustfmt
RUN rustup toolchain install beta --profile minimal --allow-downgrade -c clippy -c rustfmt
RUN rustup toolchain install nightly --profile minimal --allow-downgrade -c clippy -c rustfmt
RUN rustup toolchain install 1.56.0 --profile minimal --allow-downgrade -c clippy -c rustfmt

RUN rustup default stable

0 comments on commit eda3b8f

Please sign in to comment.