0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-02 20:05:55 +00:00

43 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2024-01-16 09:14:02 +00:00
FROM ubuntu:noble
ARG DEBIAN_FRONTEND=noninteractive
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 useradd docker -U -G sudo -m -s /bin/bash \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN apt-get update
RUN apt-get install -y \
curl bash bc gcc-14 cpp-14 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
2024-06-12 14:04:41 +00:00
unzip diffutils lzop make file g++-14 xfonts-utils xsltproc default-jre-headless python3 \
2024-01-16 09:14:02 +00:00
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \
golang-1.23-go git openssh-client rsync \
--no-install-recommends \
&& ln -s /usr/lib/go-1.23 /usr/lib/go \
&& ln -s /usr/lib/go-1.23/bin/go /usr/bin/go \
&& ln -s /usr/lib/go-1.23/bin/gofmt /usr/bin/gofmt
2024-01-16 09:14:02 +00:00
RUN if [ "$(uname -m)" = "aarch64" ]; then \
apt-get install -y libc6-amd64-cross qemu-user-binfmt --no-install-recommends; \
2024-01-16 09:14:02 +00:00
fi
RUN rm -rf /var/lib/apt/lists/*
2024-06-12 14:04:41 +00:00
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 \
--slave /usr/bin/cpp cpp /usr/bin/cpp-14 \
--slave /usr/bin/g++ g++ /usr/bin/g++-14 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-14
2024-01-16 09:14:02 +00:00
RUN update-alternatives --config gcc
USER docker