0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 16:49:53 +00:00
Rudi Heitbaum 9c42e89149 tools/docker: update focal/Dockerfile to install golang-1.18
use recent release of golang for bootstrap builds.
updates from golang-1.13 to golang-1.18
2023-02-03 08:19:24 +00:00

36 lines
1.2 KiB
Docker

FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y locales sudo \
&& rm -rf /var/lib/apt/lists/*
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 update && apt-get install -y \
wget bash bc gcc-10 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
unzip diffutils lzop make file g++-10 xfonts-utils xsltproc default-jre-headless python3 \
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl \
golang-1.18-go git openssh-client \
--no-install-recommends \
&& ln -s /usr/lib/go-1.18 /usr/lib/go \
&& rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
--slave /usr/bin/cpp cpp /usr/bin/cpp-10 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10
RUN update-alternatives --config gcc
USER docker