-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.CI
27 lines (22 loc) · 968 Bytes
/
Dockerfile.CI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This dockerfile is used to build the base image used by CI/CD jobs.
# To make changes, build a new image with the updated version in it's tag and upload it to the gitlab container registry.
#
# In the `scripts/` there are two scripts to help with building and pushing new image.
# This could be done after MANUALLY UPDATING some of the variables in both of them.
# Probably only VERSION should be updated.
# These scripts are:
# - `build-ci-base-image.sh`, which builds the image and tags it with the MANUALLY GIVEN version.
# - `push-ci-base-image.sh`, which pushes the image and will make sure you won't overwrite an existing image.
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y \
python3 \
python3-pip \
python3-venv \
git \
curl
ENV PATH="/root/.local/bin:$PATH"
# install poetry in an isolated environment
RUN curl -sSL https://install.python-poetry.org | python3 -