-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDockerfile-base-ci
More file actions
24 lines (18 loc) · 856 Bytes
/
Dockerfile-base-ci
File metadata and controls
24 lines (18 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM docker:latest
RUN apk update && \
apk upgrade && \
apk add python3 python3-dev build-base libffi-dev openssl-dev git bash rust cargo && \
apk add yq --repository http://dl-3.alpinelinux.org/alpine/edge/community/
# Remove EXTERNALLY-MANAGED files to allow for poetry installer to work
RUN find / -name EXTERNALLY-MANAGED -exec rm -f {} \; || true
RUN python3 -m ensurepip
# As CI docker image is based on alpine and we generate lock file outside of docker then
# we need system libraries required for pip dependencies.
RUN apk add postgresql-dev
RUN pip3 install -U pip 'pipenv>=2020.6.2' setuptools wheel
ENV POETRY_HOME="$HOME/.poetry"
ENV POETRY_NO_INTERACTION=1
ENV POETRY_VERSION="2.1.1"
RUN wget -O - -o /dev/null https://install.python-poetry.org | python3 -
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
RUN apk add just