From afa3ecb6541760319fe271fde44c7da920ef37d6 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 19 Mar 2016 22:24:16 +1000 Subject: [PATCH] WORKDIR does mkdir for us - so we don't need another layer Signed-off-by: Sven Dowideit --- example-voting-app/result-app/Dockerfile | 1 - static-site/Dockerfile | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/example-voting-app/result-app/Dockerfile b/example-voting-app/result-app/Dockerfile index 3b76a75..309ff4f 100644 --- a/example-voting-app/result-app/Dockerfile +++ b/example-voting-app/result-app/Dockerfile @@ -1,6 +1,5 @@ FROM mhart/alpine-node -RUN mkdir /app WORKDIR /app ADD package.json /app/package.json diff --git a/static-site/Dockerfile b/static-site/Dockerfile index 5fad307..d37ef9f 100644 --- a/static-site/Dockerfile +++ b/static-site/Dockerfile @@ -1,9 +1,8 @@ FROM nginx ENV AUTHOR=Docker -RUN mkdir -p /usr/share/nginx/html +WORKDIR /usr/share/nginx/html COPY Hello_docker.html /usr/share/nginx/html -WORKDIR /usr/share/nginx/html CMD cd /usr/share/nginx/html && sed -e s/Docker/"$AUTHOR"/ Hello_docker.html > index.html ; nginx -g 'daemon off;'