forked from docker-archive/docker-birthday-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WORKDIR does mkdir for us - so we don't need another layer
Signed-off-by: Sven Dowideit <[email protected]>
- Loading branch information
1 parent
4349f79
commit afa3ecb
Showing
2 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;' | ||
|