forked from patchstorage/patchstorage-lv2-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:22.04
LABEL maintainer="Blokas <hello@blokas.io>"
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV USER builder
ENV HOME /home/$USER
ARG REQUIRED_PKGS=" \
bash bash-completion bc binutils bison build-essential bzip2 cpio cvs file flex gawk git help2man libtool-bin mercurial \
ncurses-dev nano subversion pkg-config python3-dev python-is-python3 python3-setuptools rsync sudo tar texinfo unzip wget \
"
RUN apt-get update && apt-get upgrade -qy && apt-get install -qy $REQUIRED_PKGS && apt-get clean && \
useradd -d $HOME -m -G sudo $USER && echo "$USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99-$USER && chmod 0440 /etc/sudoers.d/99-$USER && \
echo "source /etc/bash_completion" >> $HOME/.bashrc
USER $USER
COPY . $HOME/patchstorage-lv2-builder
WORKDIR $HOME/patchstorage-lv2-builder
# Must not be named "PLATFORM" in order not to clash with buildroot.
ARG LV2_BUILDER_PLATFORM
# Below step is useful for debugging buildroot build failures,
# so it can be debugged without rebuilding the toolchain every time.
#RUN ./bootstrap.sh $LV2_BUILDER_PLATFORM toolchain
RUN ./bootstrap.sh $LV2_BUILDER_PLATFORM && ./.clean-install.sh $LV2_BUILDER_PLATFORM
ENV QEMU_LD_PREFIX /home/builder/lv2-workdir/$LV2_BUILDER_PLATFORM/target/usr
CMD ["bash"]