-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (29 loc) · 829 Bytes
/
Dockerfile
File metadata and controls
31 lines (29 loc) · 829 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
27
28
29
30
31
FROM python:3
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql \
apache2 \
libpq-dev \
zlib1g-dev \
libsasl2-dev \
libssl-dev \
swig \
libapache2-mod-xsendfile \
libapache2-mod-wsgi \
junit \
junit4 \
dejagnu \
gcj-jdk \
git-core \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY Praktomat/requirements.txt ./
RUN python3 -m venv --system-site-packages env/ && . env/bin/activate
RUN pip install -r requirements.txt
COPY Praktomat .
RUN mkdir data
RUN ./src/manage-devel.py migrate --noinput
COPY adddemouser.py ./src/utilities/management/commands/
RUN ./src/manage-devel.py adddemouser
EXPOSE 8000
CMD ["python", "./src/manage-devel.py", "runserver", "0.0.0.0:8000"]