Skip to content

Commit df66256

Browse files
authored
Merge pull request #18 from cisagov/bug/update_docker_dependencies
Update Dockerfile Versions
2 parents e457789 + 2fb73d9 commit df66256

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

Dockerfile

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG PY_VERSION=3.9.6
22

3-
FROM python:${PY_VERSION} AS compile-stage
3+
FROM python:${PY_VERSION}-bullseye AS compile-stage
44

55
# For a list of pre-defined annotation keys and value types see:
66
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
@@ -10,8 +10,8 @@ LABEL org.opencontainers.image.vendor="Cybersecurity and Infrastructure Security
1010

1111
RUN apt-get update \
1212
&& apt-get install -y --allow-downgrades --no-install-recommends \
13-
libxml2-dev=2.9.4+dfsg1-7+deb10u2 \
14-
libxslt1-dev=1.1.32-2.2~deb10u1
13+
libxml2-dev=2.9.10+dfsg-6.7 \
14+
libxslt1-dev=1.1.34-4
1515

1616
ENV PY_VENV=/.venv
1717

@@ -36,18 +36,15 @@ RUN PIPENV_VENV_IN_PROJECT=1 pipenv sync
3636
# as a last step.
3737
RUN python -m pip uninstall --yes pipenv
3838

39-
FROM python:${PY_VERSION}-slim AS build-stage
39+
FROM python:${PY_VERSION}-slim-bullseye AS build-stage
4040

4141
RUN apt-get update \
4242
&& apt-get install -y --allow-downgrades --no-install-recommends \
43-
ca-certificates=20200601~deb10u2 \
44-
# This is the latest version of the chromium package that is available for
45-
# all of our supported platforms. Since it depends on the chromium-common
46-
# package of the same version we need to force installation of that as well.
47-
chromium=89.0.4389.114-1~deb10u1 \
48-
chromium-common=89.0.4389.114-1~deb10u1 \
49-
libxml2-dev=2.9.4+dfsg1-7+deb10u2 \
50-
libxslt1-dev=1.1.32-2.2~deb10u1 \
43+
ca-certificates=20210119 \
44+
chromium=90.0.4430.212-1 \
45+
chromium-common=90.0.4430.212-1 \
46+
libxml2-dev=2.9.10+dfsg-6.7 \
47+
libxslt1-dev=1.1.34-4 \
5148
&& apt-get clean \
5249
&& rm -rf /var/lib/apt/lists/*
5350

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Python library. Then it will output CSVs with agency and domain level results.
2525
To run the `cisagov/vdp-scanner` image via Docker:
2626

2727
```console
28-
docker run cisagov/vdp-scanner:0.0.3
28+
docker run cisagov/vdp-scanner:0.0.4
2929
```
3030

3131
### Running with Docker Compose ###
@@ -38,7 +38,7 @@ docker run cisagov/vdp-scanner:0.0.3
3838

3939
services:
4040
vdp-scanner:
41-
image: 'cisagov/vdp-scanner:0.0.3'
41+
image: 'cisagov/vdp-scanner:0.0.4'
4242
volumes:
4343
- .:/task/host_mount
4444
```
@@ -76,7 +76,7 @@ docker run cisagov/vdp-scanner:0.0.3
7676
1. Pull the new image:
7777

7878
```console
79-
docker pull cisagov/vdp-scanner:0.0.3
79+
docker pull cisagov/vdp-scanner:0.0.4
8080
```
8181

8282
1. Recreate and run the container by following the [previous instructions](#running-with-docker).
@@ -85,11 +85,11 @@ docker run cisagov/vdp-scanner:0.0.3
8585

8686
The images of this container are tagged with
8787
[semantic versions](https://semver.org). It is recommended that most users use
88-
a version tag (e.g. `:0.0.3`).
88+
a version tag (e.g. `:0.0.4`).
8989

9090
| Image:tag | Description |
9191
|-----------|-------------|
92-
|`cisagov/vdp-scanner:0.0.3`| An exact release version. |
92+
|`cisagov/vdp-scanner:0.0.4`| An exact release version. |
9393
|`cisagov/vdp-scanner:0.0`| The most recent release matching the major and minor version numbers. |
9494
|`cisagov/vdp-scanner:0`| The most recent release matching the major version number. |
9595
|`cisagov/vdp-scanner:edge` | The most recent image built from a merge into the `develop` branch of this repository. |
@@ -155,7 +155,7 @@ Build the image locally using this git repository as the [build context](https:/
155155

156156
```console
157157
docker build \
158-
--tag cisagov/vdp-scanner:0.0.3 \
158+
--tag cisagov/vdp-scanner:0.0.4 \
159159
https://github.com/cisagov/vdp-scanner-docker.git#develop
160160
```
161161

@@ -186,7 +186,7 @@ Docker:
186186
--file Dockerfile-x \
187187
--platform linux/amd64 \
188188
--output type=docker \
189-
--tag cisagov/vdp-scanner:0.0.3 .
189+
--tag cisagov/vdp-scanner:0.0.4 .
190190
```
191191

192192
## Contributing ##

src/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.3"
1+
__version__ = "0.0.4"

0 commit comments

Comments
 (0)