-
Notifications
You must be signed in to change notification settings - Fork 148
/
Dockerfile
35 lines (24 loc) · 954 Bytes
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
FROM python:3.9
ENV UWSGI_PIP_VERSION 2.0.20
RUN mkdir /opt/lrs /opt/lrs/logs
# Install our reqs
RUN apt-get update && \
apt-get install -y && \
pip3 install fabric3 virtualenv
# RUN echo "Cloning LRS Branch" && \
# git clone https://github.com/adlnet/ADL_LRS /opt/lrs/ADL_LRS
COPY . ./opt/lrs/ADL_LRS
WORKDIR /opt/lrs/ADL_LRS
ENV DJANGO_ENV=prod
ENV DOCKER_CONTAINER=1
# Prepare the configuration
COPY docker/lrs/uwsgi/lrs_uwsgi.ini /etc/uwsgi/vassals/lrs_uwsgi.ini
COPY docker/lrs/uwsgi/lrs.service /lib/systemd/system/lrs.service
COPY settings.ini /opt/lrs/ADL_LRS/adl_lrs/settings.ini
COPY docker/lrs/modified-fabfile.py /opt/lrs/ADL_LRS/fabfile.py
# We'll need to run the setup
COPY docker/lrs/scripts/django-shell.sh /bin/django-shell.sh
COPY docker/lrs/scripts/setup-lrs.sh /bin/setup-lrs.sh
COPY docker/lrs/scripts/test-lrs.sh /bin/test-lrs.sh
COPY docker/lrs/scripts/setup-admin.sh /bin/setup-admin.sh
CMD ["/bin/setup-lrs.sh"]