File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 1
- FROM appsecpipeline/dojo-base
2
1
3
- # Create the dojo user
4
- RUN useradd -m dojo
2
+ FROM ubuntu:16.04
3
+ MAINTAINER Matt Tesauro <[email protected] <mailto:[email protected] >>
5
4
6
- # Change to the dojo user
7
- USER dojo
5
+ # Create a single Docker running DefectDojo and all dependencies
8
6
9
- # Add DefectDojo
10
- ADD . /django-DefectDojo
7
+ RUN apt update \
8
+ && DEBIAN_FRONTEND=noninteractive apt install -y mysql-server sudo git expect \
9
+ && usermod -d /var/lib/mysql/ mysql \
10
+ && service mysql start \
11
+ && cd /opt \
12
+ && git clone https://github.com/OWASP/django-DefectDojo.git \
13
+ && export AUTO_DOCKER=yes \
14
+ && /opt/django-DefectDojo/setup.bash \
15
+ && service mysql stop
11
16
12
- # Set working directory
13
- WORKDIR /django-DefectDojo
17
+ WORKDIR /opt/django-DefectDojo
14
18
15
- USER root
16
-
17
- # Run the setup script
18
- RUN bash docker/docker-startup.bash setup
19
-
20
- USER dojo
21
-
22
- CMD bash docker/docker-startup.bash
19
+ CMD chown -R mysql:mysql /var/lib/mysql /var/run/mysqld \
20
+ && service mysql start \
21
+ && python manage.py runserver 0.0.0.0:8000<http://0.0.0.0:8000>
You can’t perform that action at this time.
0 commit comments