[Fuego] [PATCH 1/1] dockerfile: use debian:jessie-slim as a base image
Fathi Boudra
fathi.boudra at linaro.org
Thu Apr 4 04:09:56 UTC 2019
It reduces the size of the image by a few hundred megs.
Signed-off-by: Fathi Boudra <fathi.boudra at linaro.org>
---
Dockerfile | 3 ++-
Dockerfile.nojenkins | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index a144bd6..3b12de7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,7 @@
# ==============================================================================
# FIXTHIS: build this as an extension of the nonjenkins image
-FROM debian:jessie
+FROM debian:jessie-slim
MAINTAINER tim.bird at sony.com
# ==============================================================================
@@ -37,6 +37,7 @@ RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' >
# - python-parsedatetime: ftc
# - python-pip: to install filelock, flake8
# - filelock: parser
+RUN mkdir -p /usr/share/man/man1
RUN apt-get update && apt-get -yV install \
python-lxml python-simplejson python-yaml python-openpyxl \
python-requests python-reportlab python-parsedatetime \
diff --git a/Dockerfile.nojenkins b/Dockerfile.nojenkins
index 4519c4c..fac33e4 100644
--- a/Dockerfile.nojenkins
+++ b/Dockerfile.nojenkins
@@ -15,7 +15,7 @@
# docker# ftc run-test -b docker -t Functional.hello_world
# log_compare: pattern 'SUCCESS' found 1 times (expected greater or equal than 1)
-FROM debian:jessie
+FROM debian:jessie-slim
MAINTAINER tim.bird at sony.com
# ==============================================================================
@@ -48,6 +48,7 @@ RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' >
# - python-parsedatetime: ftc
# - python-pip: to install filelock, flake8
# - filelock: parser
+RUN mkdir -p /usr/share/man/man1
RUN apt-get update && apt-get -yV install \
python-lxml python-simplejson python-yaml python-openpyxl \
python-requests python-reportlab python-parsedatetime \
--
2.20.1
More information about the Fuego
mailing list