2023-09-20 10:08:26 +00:00
|
|
|
FROM ubuntu:jammy
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-09-20 10:08:26 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2023-10-14 19:37:06 +00:00
|
|
|
SHELL ["/usr/bin/bash", "-c"]
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-09-20 10:08:26 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get dist-upgrade -y \
|
|
|
|
&& apt-get install -y locales sudo
|
|
|
|
|
|
|
|
RUN locale-gen en_US.UTF-8 \
|
|
|
|
&& update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
|
|
LANGUAGE=en_US:en \
|
|
|
|
LC_ALL=en_US.UTF-8
|
|
|
|
|
|
|
|
RUN adduser --disabled-password --gecos '' docker \
|
|
|
|
&& adduser docker sudo \
|
|
|
|
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
bc default-jre file gawk gcc git golang-go gperf libjson-perl libncurses5-dev \
|
2023-10-14 19:37:06 +00:00
|
|
|
libparse-yapp-perl libxml-parser-perl lzop make patchutils python-is-python3 \
|
2023-09-20 23:42:17 +00:00
|
|
|
python3 parted unzip wget curl xfonts-utils xsltproc zip zstd
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-10-14 19:37:06 +00:00
|
|
|
### Cross compiling on ARM
|
|
|
|
RUN if [ "$(uname -m)" = "aarch64" ]; then apt-get install -y --no-install-recommends qemu-user-binfmt libc6-dev-amd64-cross; fi
|
|
|
|
RUN if [ ! -d /lib64 ]; then ln -sf /usr/x86_64-linux-gnu/lib64 /lib64; fi
|
|
|
|
RUN if [ ! -d /lib/x86_64-linux-gnu ]; then ln -sf /usr/x86_64-linux-gnu/lib /lib/x86_64-linux-gnu; fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
RUN mkdir -p /work && chown docker /work
|
|
|
|
|
|
|
|
WORKDIR /work
|
|
|
|
USER docker
|