From 12ae0e51939c551b4ac0a76480465fa7620b0cf4 Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:19:59 +0500 Subject: [PATCH] chore: updated xqueue dockerfile --- dockerfiles/xqueue.Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dockerfiles/xqueue.Dockerfile b/dockerfiles/xqueue.Dockerfile index ae1e2d3..16d43f0 100644 --- a/dockerfiles/xqueue.Dockerfile +++ b/dockerfiles/xqueue.Dockerfile @@ -25,9 +25,6 @@ ENV XQUEUE_CODE_DIR="${XQUEUE_APP_DIR}/xqueue" ENV PATH="$XQUEUE_VENV_DIR/bin:$PATH" -# Working directory will be root of repo. -WORKDIR ${XQUEUE_CODE_DIR} - # Install curl RUN apt-get update && apt-get install -y curl # cloning git repo @@ -35,10 +32,6 @@ RUN curl -L https://github.com/openedx/edx-notes-api/archive/refs/heads/master.t RUN virtualenv -p python3.8 --always-copy ${XQUEUE_VENV_DIR} - -# placeholder file for the time being unless devstack provisioning scripts need it. -RUN touch ${XQUEUE_APP_DIR}/xqueue_env - # Expose ports. EXPOSE 8040 @@ -54,7 +47,7 @@ CMD while true; do python ./manage.py runserver 0.0.0.0:8040; sleep 2; done FROM app as production # xqueue service config commands below -RUN pip install -r ${XQUEUE_APP_DIR}/requirements.txt +RUN pip install -r /requirements.txt ENV DJANGO_SETTINGS_MODULE xqueue.production