From 6567b54291b04d3e73ae13f9a20664f60f115038 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 23 Oct 2021 21:16:39 +0300 Subject: [PATCH] Add python3 image. --- .gitlab-ci.yml | 17 +++++++++++++++++ images/python3/.dockerignore | 1 + images/python3/Dockerfile | 15 +++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 images/python3/.dockerignore create mode 100644 images/python3/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09564c9..a98a2c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,3 +123,20 @@ push-pre-commit: needs: - job: build-pre-commit artifacts: true + +# python3 image: + +build-python3: + extends: .container-build + variables: + CONTEXT: images/python3 + +push-python3: + extends: .container-push + variables: + CONTEXT: images/python3 + IMAGE: ci-images + TAG: python3 + needs: + - job: build-python3 + artifacts: true diff --git a/images/python3/.dockerignore b/images/python3/.dockerignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/images/python3/.dockerignore @@ -0,0 +1 @@ +* diff --git a/images/python3/Dockerfile b/images/python3/Dockerfile new file mode 100644 index 0000000..84755c5 --- /dev/null +++ b/images/python3/Dockerfile @@ -0,0 +1,15 @@ +FROM buildpack-deps:bullseye +# hadolint ignore=DL3008,DL3013 +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + python3-dev \ + python3-pip \ + python3-venv \ + && \ + python3 -m pip install --progress-bar=off --no-cache-dir --upgrade pip && \ + python3 -m pip install --progress-bar=off --no-cache-dir --upgrade \ + pipenv \ + poetry \ + tox \ + && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* /root/.cache/* -- GitLab