iStoreNAS/docker/Dockerfile

32 lines
807 B
Docker
Raw Normal View History

2024-04-08 14:34:09 +08:00
FROM debian:buster
COPY sources.list /etc/apt/sources.list
RUN apt-get update &&\
apt-get install -y \
2024-04-08 14:47:24 +08:00
sudo time git-core build-essential g++ bash make \
2024-04-08 14:34:09 +08:00
libssl-dev patch libncurses5 libncurses5-dev zlib1g-dev gawk \
2024-04-08 14:47:24 +08:00
flex gettext wget unzip bzip2 xz-utils device-tree-compiler rsync curl \
2024-04-08 14:34:09 +08:00
libsnmp-dev liblzma-dev libpam0g-dev cpio rsync gcc-multilib && \
apt-get clean && \
useradd -m builder && \
echo 'user ALL=NOPASSWD: ALL' > /etc/sudoers.d/builder
# set system wide dummy git config
RUN git config --system user.name "builder" && git config --system user.email "builder@example.com"
USER builder
VOLUME /work
VOLUME /work/ib
ENV WORK_SOURCE=/work
ENV WORK_TARGET=x86_64
COPY build.sh /bin/build.sh
WORKDIR /work
ENTRYPOINT [ "/bin/build.sh" ]