diff --git a/Dockerfile b/Dockerfile index 3aad7f7..8c119fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,9 @@ RUN export ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \ COPY tubesync /app COPY tubesync/tubesync/local_settings.py.container /app/tubesync/local_settings.py +# Copy over pip.conf to use piwheels +COPY pip.conf /etc/pip.conf + # Add Pipfile COPY Pipfile /app/Pipfile COPY Pipfile.lock /app/Pipfile.lock @@ -62,6 +65,7 @@ RUN set -x && \ python3-pip \ python3-dev \ gcc \ + g++ \ make \ default-libmysqlclient-dev \ libmariadb3 \ @@ -101,6 +105,7 @@ RUN set -x && \ python3-pip \ python3-dev \ gcc \ + g++ \ make \ default-libmysqlclient-dev \ postgresql-common \ diff --git a/Pipfile b/Pipfile index f6a3147..fe274fa 100644 --- a/Pipfile +++ b/Pipfile @@ -3,11 +3,6 @@ name = "pypi" url = "https://pypi.org/simple" verify_ssl = true -[[source]] -name = "piwheels" -url = "https://www.piwheels.org/simple" -verify_ssl = true - [dev-packages] [packages] diff --git a/pip.conf b/pip.conf new file mode 100644 index 0000000..e92bae1 --- /dev/null +++ b/pip.conf @@ -0,0 +1,2 @@ +[global] +extra-index-url=https://www.piwheels.org/simple