mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-26 19:25:31 +02:00
- Tox py3.7 + pipenv - Python3 Dockerfile.py - Dockerfile.py tags remote instead of just local image names now - Circle.sh instead of in-line circle.yml script breakout - probably other stuff I forgot - Docker images build during the tests should hopefullly now be available at the deploy job workflow thanks to shared docker layers. - Rename aarch64 to arm64 to reduce custom map
24 lines
702 B
Plaintext
24 lines
702 B
Plaintext
FROM docker:latest
|
|
|
|
# Based on https://github.com/Ilhicas/alpine-pipenv
|
|
ARG packages
|
|
RUN apk --update add python3 python3-dev curl gcc make \
|
|
musl-dev libffi-dev openssl-dev ${packages} \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& pip3 install -U pip pipenv
|
|
|
|
|
|
# -v "$(pwd):/$(pwd)" -w "$(pwd)" to prevent nested docker path confusion
|
|
COPY ./Dockerfile.sh /usr/local/bin/
|
|
COPY Pipfile* /root/
|
|
WORKDIR /root
|
|
|
|
RUN pipenv install --system \
|
|
&& sed -i 's|/bin/sh|/bin/bash|g' /usr/lib/python3.8/site-packages/testinfra/backend/docker.py
|
|
|
|
|
|
RUN echo "set -ex && Dockerfile.sh && \$@" > /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
ENTRYPOINT entrypoint.sh
|
|
CMD Dockerfile.sh
|