Skip to content

Commit

Permalink
WORKDIR does mkdir for us - so we don't need another layer
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Dowideit <[email protected]>
  • Loading branch information
SvenDowideit committed Mar 19, 2016
1 parent 4349f79 commit afa3ecb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion example-voting-app/result-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM mhart/alpine-node

RUN mkdir /app
WORKDIR /app

ADD package.json /app/package.json
Expand Down
3 changes: 1 addition & 2 deletions static-site/Dockerfile
Original file line number Diff line number Diff line change
@@ -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;'

0 comments on commit afa3ecb

Please sign in to comment.