-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
FROM ubuntu:jammy | ||
|
||
ARG uid=1000 | ||
ARG gid=1000 | ||
|
||
RUN addgroup --gid "$gid" ck | ||
RUN adduser --uid "$uid" --gid "$gid" --gecos "" --disabled-password ck | ||
|
||
RUN apt-get update | ||
RUN apt-get -y install nasm meson ninja-build bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo xorriso autotools-dev automake autoconf autoconf-archive gettext pkgconf autopoint gcc-12 g++-12 gperf linux-libc-dev python3.11 groff gengetopt cmake git rsync wget help2man | ||
RUN apt-get -y install curl nasm meson ninja-build bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo xorriso autotools-dev automake autoconf autoconf-archive gettext pkgconf autopoint gcc-12 g++-12 gperf linux-libc-dev python3.11 groff gengetopt cmake git rsync wget help2man | ||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 | ||
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12 | ||
|
||
USER ck | ||
|
||
RUN mkdir -p /home/ck/cykusz-rs | ||
WORKDIR /home/ck/cykusz-rs/sysroot | ||
|
||
RUN curl https://sh.rustup.rs -sSf | \ | ||
sh -s -- -y | ||
|
||
ENV PATH=/home/ck/.cargo/bin:$PATH | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters