Skip to content

Commit

Permalink
chore: updated xqueue dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Oct 14, 2024
1 parent 5ea0d9a commit 12ae0e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dockerfiles/xqueue.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,13 @@ 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
RUN curl -L https://github.com/openedx/edx-notes-api/archive/refs/heads/master.tar.gz | tar -xz --strip-components=1

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

Expand All @@ -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
Expand Down

0 comments on commit 12ae0e5

Please sign in to comment.