Skip to content

Commit 81167ab

Browse files
committed
Add metadata in the Dockerfile
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent e6941e6 commit 81167ab

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
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
55
ENV PYTHONUNBUFFERED 1
66
RUN mkdir /vulnerablecode
77
WORKDIR /vulnerablecode
88
ADD . /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"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
5252
For 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

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)