forked from CroceRossaItaliana/jorvik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 906 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
#FROM alfioemanuele/jorvik-docker-base:latest
FROM python:3.5
ENV PYTHONUNBUFFERED 1
ADD . /tmp
WORKDIR /tmp
# Installa tutti i requisiti Ubuntu
RUN apt-get update
RUN wget https://raw.githubusercontent.com/CroceRossaItaliana/jorvik-docker-base/2e0c524a41bcb86632930a02aa39009cf008a8b8/apt-dependencies.txt
RUN apt-get --assume-yes install `cat apt-dependencies.txt | grep -v "#" | xargs`
# actually not deleting the file, to fix
RUN rm apt-dependencies.txt
# Scarica e installa i requisiti PIP da CroceRossaItalian/jorvik (branch master)
RUN pip install -r https://raw.githubusercontent.com/CroceRossaItaliana/jorvik/master/requirements.txt
# Working directory
RUN mkdir /code
ADD . /code/
WORKDIR /code
# Entrypoint
RUN chmod +x ./config/docker-entrypoint.sh
ENTRYPOINT ["bash", "./config/docker-entrypoint.sh"]
# Start development server
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]