docker configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

105 lines
2.2 KiB

FROM ubuntu:22.04
ARG USERNAME=forlinx
ARG USER_UID=1000
ARG USER_GID=1000
ENV DEBIAN_FRONTEND=noninteractive
ENV SDK_ROOT=/work/OK3568_Linux_fs
ENV PATH="${SDK_ROOT}/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin:${SDK_ROOT}/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin:${PATH}"
RUN apt-get update && apt-get install -y --no-install-recommends \
acl \
autoconf \
automake \
bc \
binutils \
bison \
bsdmainutils \
build-essential \
bzip2 \
ca-certificates \
ccache \
chrpath \
cmake \
cpio \
curl \
device-tree-compiler \
default-jdk \
diffstat \
dwarves \
fakeroot \
file \
flex \
g++-aarch64-linux-gnu \
g++-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabihf \
git \
gnupg \
gperf \
gawk \
kmod \
lib32stdc++6 \
lib32z1 \
libelf-dev \
libgmp-dev \
libglib2.0-dev \
libmpc-dev \
libmpfr-dev \
libncurses-dev \
libncurses5-dev \
libncursesw5-dev \
libssl-dev \
libtool \
libudev-dev \
libusb-1.0-0-dev \
libxml2-utils \
locales \
lz4 \
lzop \
make \
maven \
ninja-build \
nodejs \
npm \
openssh-client \
patch \
python-is-python3 \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
qemu-user-static \
repo \
rsync \
sudo \
swig \
texinfo \
unzip \
u-boot-tools \
vim-tiny \
wget \
xz-utils \
zip \
zstd \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8 ko_KR.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
RUN groupadd --gid ${USER_GID} ${USERNAME} \
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME} \
&& echo "${USERNAME}:${USERNAME}" | chpasswd \
&& echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USERNAME} \
&& chmod 0440 /etc/sudoers.d/${USERNAME}
COPY entrypoint.sh /usr/local/bin/ok3568-entrypoint
RUN chmod +x /usr/local/bin/ok3568-entrypoint
USER ${USERNAME}
WORKDIR /work/OK3568_Linux_fs
ENTRYPOINT ["/usr/local/bin/ok3568-entrypoint"]
CMD ["/bin/bash"]