From 899ca95eab831c3390fc9dd7f23b58018d597a52 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 11 Jan 2019 06:41:58 +0000 Subject: [PATCH] is now ubuntu bionic --- Dockerfile | 22 +++++++++++++--------- setup-mirror | 10 ++++++++++ 2 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 setup-mirror diff --git a/Dockerfile b/Dockerfile index 02e6bf2..305164c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,17 @@ -FROM gentoo/stage3-amd64 +FROM ubuntu:18.04 -RUN emerge --sync +ENV DEBIAN_FRONTEND noninteractive -RUN emerge app-editors/vim-core -#sual-studio-code +ADD ./setup-mirror /tmp/setup-mirror +RUN bash /tmp/setup-mirror -RUN FEATURES='-usersandbox' emerge dev-lang/go +RUN apt update && apt upgrade -y -RUN emerge app-eselect/eselect-repository -RUN emerge app-portage/gentoolkit -RUN emerge app-portage/pfl -RUN emerge app-portage/portage-utils +RUN apt install -y \ + vim \ + command-not-found \ + build-essential \ + python3 \ + python3-pip \ + python3-dev \ + ruby diff --git a/setup-mirror b/setup-mirror new file mode 100644 index 0000000..502d3ca --- /dev/null +++ b/setup-mirror @@ -0,0 +1,10 @@ +#!/bin/bash + +MRUM="main restricted universe multiverse" + +cat > /etc/apt/sources.list << EOF +deb mirror://mirrors.ubuntu.com/mirrors.txt bionic $MRUM +deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates $MRUM +deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security $MRUM +deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports $MRUM +EOF