File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM python:3.8
1+ FROM python@sha256:e9b7e3b4e9569808066c5901b8a9ad315a9f14ae8d3949ece22ae339fff2cad0
22
33# PYTHONUNBUFFERED=1 ensures that the python output is set straight
44# to the terminal without buffering it first
55ENV PYTHONUNBUFFERED 1
66RUN mkdir /vulnerablecode
77WORKDIR /vulnerablecode
88ADD . /vulnerablecode/
9- RUN pip install -r requirements.txt
9+ RUN pip install -r requirements.txt
10+
11+ LABEL "base_image" : "pkg:docker/python@sha256%3Ae9b7e3b4e9569808066c5901b8a9ad315a9f14ae8d3949ece22ae339fff2cad0"
12+ LABEL "dockerfile_url" : "https://github.com/nexB/vulnerablecode/blob/develop/Dockerfile"
13+ LABEL "homepage_url" : "https://github.com/nexB/vulnerablecode"
14+ LABEL "license" : "Apache-2.0"
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ cd vulnerablecode
4848```
4949
5050### Using Docker Compose
51- The easiest way to set up VulnerableCode is by using the docker containers .
51+ An easy way to set up VulnerableCode is with docker containers and docker compose .
5252For this you need to have the following installed.
5353- Docker Engine. Find instructions to install it here
5454- Docker Compose. Find instructions to install it here
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
66 - DJANGO_DEV=1
77 - VC_DB_HOST=db
88 build : .
9- command : bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
9+ command : bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
1010 container_name : " vulnerablecode"
1111 volumes :
1212 - .:/vulnerablecode
You can’t perform that action at this time.
0 commit comments