forked from OWASP-BLT/BLT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 671 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
FROM python:3.8
ENV PYTHONUNBUFFERED 1
RUN mkdir /bugheist
WORKDIR /bugheist
ADD . /bugheist
# Install PostgreSQL dependencies
RUN apt-get update && \
apt-get install -y postgresql-client libpq-dev && \
rm -rf /var/lib/apt/lists/*
# Install pylibmc dependencies
RUN apt-get update && apt-get install -y \
libmemcached11 \
libmemcachedutil2 \
libmemcached-dev \
libz-dev
RUN pip install pipenv
RUN pipenv install
RUN python manage.py migrate --noinput
RUN python manage.py loaddata website/fixtures/initial_data.json
RUN python manage.py collectstatic
RUN python manage.py initsuperuser
CMD ["python","manage.py","runserver"]