forked from openedx/xqueue-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:xenial as openedx
RUN apt update && \
apt install -y git-core language-pack-en apparmor apparmor-utils python python-pip python-dev && \
pip install --upgrade pip setuptools && \
rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
WORKDIR /edx/app/xqueue_watcher
COPY requirements /edx/app/xqueue_watcher/requirements
RUN pip install -r requirements/production.txt
CMD python -m xqueue_watcher -d /edx/etc/xqueue_watcher
RUN useradd -m --shell /bin/false app
USER app
COPY . /edx/app/xqueue_watcher
FROM openedx as edx.org
RUN pip install newrelic
CMD newrelic-admin run-program python -m xqueue_watcher -d /edx/etc/xqueue_watcher