2023-12-16 23:23:08 +01:00
|
|
|
ARG alpine_version="3.19"
|
2023-12-08 20:17:02 +01:00
|
|
|
ARG docker_version="24.0.7"
|
|
|
|
|
|
|
|
FROM docker:${docker_version}-cli-alpine${alpine_version}
|
2020-05-28 02:26:53 +02:00
|
|
|
|
2023-07-24 19:26:04 +02:00
|
|
|
COPY --chmod=0755 ./cmd.sh /usr/local/bin/cmd.sh
|
|
|
|
COPY --chmod=0755 ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
2023-12-16 23:33:23 +01:00
|
|
|
COPY requirements.txt /root/
|
2020-01-14 15:37:44 +01:00
|
|
|
WORKDIR /root
|
|
|
|
|
2023-07-24 19:26:04 +02:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
python3-dev \
|
|
|
|
py3-pip \
|
|
|
|
curl \
|
2023-12-16 23:33:23 +01:00
|
|
|
&& pip3 install --break-system-packages --no-cache-dir -U pip \
|
|
|
|
&& pip3 install --break-system-packages --no-cache-dir -r requirements.txt \
|
2023-12-17 13:42:19 +01:00
|
|
|
# Not 100% sure what this line does, but it's always been in the Dockerfile (aside from pointing at a different file)
|
2023-07-24 19:26:04 +02:00
|
|
|
# Tests fall over without it. Investigate later.
|
|
|
|
&& sed -i 's|/bin/sh|/bin/bash|g' /usr/lib/python3.11/site-packages/testinfra/backend/docker.py
|
2020-01-14 15:37:44 +01:00
|
|
|
|
|
|
|
ENTRYPOINT entrypoint.sh
|
2022-07-19 19:22:49 +02:00
|
|
|
CMD cmd.sh
|