aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: bd5fc437765e6b9ed82353fc2001640cab21a02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM linaro/ci-amd64-llp-alpine

ADD . /srv/linaro-license-protection

ADD secrets.py /srv/secrets.py
RUN echo "*" >> /srv/allowed_hosts.txt
ENV allowed_hosts="*"
ENV DJANGO_DEBUG="y"
RUN /srv/linaro-license-protection/manage.py migrate # Used to build the sqlite database. Temp fix as codebase needs to be updated to delete old DB calls

# README
# RUN Django "runserver"
# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -e DJANGO_DEBUG=Y -p 8080:8080 linaro/ci-amd64-llp-alpine
#
# RUN in "production" mode
# Runs docker in "S3" mode (settings.production) in django runserver
# Mount a docker "bind" mount for on-the-fly reloading
# docker build -t llp .
# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -p 8080:8080 linaro/ci-amd64-llp-alpine