From 72ccedc45d9dd6c41636ac2d06de2f6b6a73d7af Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Wed, 5 Oct 2022 20:14:37 +0800 Subject: [PATCH] chore: refactor Dockerfile - change base image to ubuntu:20.04 - support ruby 2.7 - docker lint --- Dockerfile | 129 +++++++++++++++++++++++++++++------------------------ 1 file changed, 71 insertions(+), 58 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02e2781dc9..6111caa8c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1 + # Are we running against the minimal container, or the everything # container? Minimal is mostly the compiled package tools. Everything # pulls in scripting langauges. @@ -8,87 +10,98 @@ ARG BASE_ENV=everything ARG TARGET=test # Container to throw an error if called with a bare `docker build .` -FROM ubuntu:18.04 as error -RUN echo "\n\n\nHey! Use buildkit. See the Makefile or docs\n\n\n" -RUN false +FROM ubuntu:20.04 as error +RUN <=45' 'wheel>=0.34' 'virtualenv>=20' 'virtualenv-tools3>=2' + update-alternatives --install /usr/bin/python python /usr/bin/python3 10 +EOF +# hadolint ignore=DL3006 +FROM ${BASE_ENV}-base as base +RUN <