Skip to content
Permalink
Browse files

Pin versions of external docker images for more stability

  • Loading branch information...
TROVATELLI Pascal
TROVATELLI Pascal committed Jul 30, 2019
1 parent 4b60e18 commit 0ab594ec42dd4185856dda41494d8ae26c160ad3
Showing with 6 additions and 6 deletions.
  1. +2 −2 Dockerfile.django
  2. +2 −2 Dockerfile.nginx
  3. +2 −2 docker-compose.yml
@@ -4,7 +4,7 @@
# The code for the build image should be idendical with the code in
# Dockerfile.nginx to use the caching mechanism of Docker.

FROM python:3 as build
FROM python:3.7.4-buster@sha256:7dd57761929672e7c2c18348d257ed5148fc6a971a13cfd8a3d1d8573226a5c2 as build
WORKDIR /app
RUN \
apt-get -y update && \
@@ -21,7 +21,7 @@ RUN \
COPY requirements.txt ./
RUN pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt

FROM python:3-slim
FROM python:3.7.4-slim-buster@sha256:93cb70c52a4351871557f1daa6cfaf6081840804f3f69a3c55b291bd58f75793
WORKDIR /app
RUN \
apt-get -y update && \
@@ -3,7 +3,7 @@
# The code for the build image should be idendical with the code in
# Dockerfile.django to use the caching mechanism of Docker.

FROM python:3 as build
FROM python:3.7.4-buster@sha256:7dd57761929672e7c2c18348d257ed5148fc6a971a13cfd8a3d1d8573226a5c2 as build
WORKDIR /app
RUN \
apt-get -y update && \
@@ -55,7 +55,7 @@ RUN \
python3 manage.py collectstatic --noinput && \
true

FROM nginx
FROM nginx:1.17.2@sha256:eb3320e2f9ca409b7c0aa71aea3cf7ce7d018f03a372564dbdb023646958770b
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/
COPY wsgi_params nginx/nginx.conf /etc/nginx/
COPY docker/entrypoint-nginx.sh /
@@ -60,7 +60,7 @@ services:
DD_ADMIN_LAST_NAME: ${DD_ADMIN_LAST_NAME:-User}
DD_INITIALIZE: ${DD_INITIALIZE:-true}
mysql:
image: mysql:5.7
image: mysql:5.7.27@sha256:540488d8f0e04c1077d17934d1c1511fe417e2221dff508ce4621f5efe6131db
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
DD_DATABASE_URL: ${DD_DATABASE_URL:-mysql://defectdojo:defectdojo@mysql:3306/defectdojo}
@@ -71,6 +71,6 @@ services:
volumes:
- defectdojo_data:/var/lib/mysql
rabbitmq:
image: rabbitmq:3.7
image: rabbitmq:3.7.17@sha256:12202c13c8e1d7f5688e733e04f3713cf25c4478dde62be691e0a1d2c9346d1c
volumes:
defectdojo_data: {}

0 comments on commit 0ab594e

Please sign in to comment.
You can’t perform that action at this time.