2018-11-28 18:00:48 +00:00
|
|
|
FROM ubuntu:18.04
|
2019-06-23 18:03:19 +00:00
|
|
|
MAINTAINER Overhang.io <contact@overhang.io>
|
2018-06-02 01:29:53 +00:00
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
apt upgrade -y && \
|
2018-11-28 18:00:48 +00:00
|
|
|
apt install -y language-pack-en git python-pip libmysqlclient-dev
|
2018-06-02 01:29:53 +00:00
|
|
|
|
2019-06-07 06:53:33 +00:00
|
|
|
RUN mkdir /openedx /openedx/data
|
2019-06-07 06:50:43 +00:00
|
|
|
RUN git clone https://github.com/edx/xqueue --branch open-release/ironwood.2 --depth 1 /openedx/xqueue
|
2018-06-02 01:29:53 +00:00
|
|
|
WORKDIR /openedx/xqueue
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
EXPOSE 8040
|
2019-05-02 06:42:09 +00:00
|
|
|
CMD gunicorn --workers=2 --name xqueue --bind=0.0.0.0:8040 --max-requests=1000 xqueue.wsgi:application
|