-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (19 loc) · 994 Bytes
/
Dockerfile
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
28
29
30
31
32
33
34
35
# Gitlab docker builder image
# contemporary version of skopeo needed
FROM docker:20.10
ENV DOCKER_TLS_CERTDIR "/certs"
ENV DOCKER_CLI_EXPERIMENTAL enabled
ENV BUILDX_URL https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64
RUN apk add --no-cache wget git bash findutils python3 python3-dev curl g++ libmagic skopeo jq
RUN mkdir -p $HOME/.docker/cli-plugins/
RUN wget -O $HOME/.docker/cli-plugins/docker-buildx $BUILDX_URL
RUN chmod a+x $HOME/.docker/cli-plugins/docker-buildx
RUN python3 -m ensurepip
RUN rm -r /usr/lib/python*/ensurepip
RUN pip3 install --upgrade pip setuptools
RUN if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi
RUN if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
COPY pyproject.toml /root/
WORKDIR /root
RUN . $HOME/.poetry/env && poetry config virtualenvs.create false && poetry install