From c1aead20fb0600ff5c1443e1def3ad7906dc499e Mon Sep 17 00:00:00 2001 From: "John N. Milner" Date: Wed, 1 Feb 2023 11:08:24 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20`RemoteNotFoundError`=20from=20pip=20by?= =?UTF-8?q?=20removing=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `chmod` command on the virtualenv directory. Additionally, change the `pip` and `pip-tools` install process to match kpi's `Dockerfile` --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b3cf0278..cada4ac6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,9 @@ ENV VIRTUAL_ENV=/opt/venv \ KOBOCAT_SRC_DIR=/srv/src/kobocat \ TMP_DIR=/srv/tmp -# Install `pip` packages -RUN python3 -m venv "$VIRTUAL_ENV" +RUN python -m venv "$VIRTUAL_ENV" ENV PATH="$VIRTUAL_ENV/bin:$PATH" -RUN pip install --quiet pip==22.0.4 && \ - pip install --quiet pip-tools +RUN pip install --quiet pip-tools==6.\* COPY ./dependencies/pip/requirements.txt "${TMP_DIR}/pip_dependencies.txt" RUN pip-sync "${TMP_DIR}/pip_dependencies.txt" 1>/dev/null @@ -103,7 +101,6 @@ RUN chown -R ":${UWSGI_GROUP}" ${CELERY_PID_DIR} && \ chown -R "${UWSGI_USER}:${UWSGI_GROUP}" ${KOBOCAT_SRC_DIR}/emails/ && \ chown -R "${UWSGI_USER}:${UWSGI_GROUP}" ${KOBOCAT_LOGS_DIR} && \ chown -R "${UWSGI_USER}:${UWSGI_GROUP}" ${TMP_DIR} && \ - chown -R "${UWSGI_USER}:${UWSGI_GROUP}" ${VIRTUAL_ENV} && \ chown -R "${UWSGI_USER}:${UWSGI_GROUP}" ${BACKUPS_DIR} WORKDIR "${KOBOCAT_SRC_DIR}"