Skip to content

Commit

Permalink
chore(docker): Copy start.sh script as a separate last action
Browse files Browse the repository at this point in the history
This optimizes docker image rebuild after a change in this script.
  • Loading branch information
mbektchiev committed Feb 18, 2019
1 parent e6e5fe8 commit e5707c8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM ruby:2.3.5-alpine3.4

COPY docs-watcher/start.sh /

RUN apk add --update \
bash \
bash-completion \
Expand All @@ -17,9 +15,12 @@ RUN apk add --update \
&& npm config set cache /var --global \
&& npm install -g grunt \
&& npm install -g gulp \
&& npm install -g gulp-typedoc \
&& mkdir /run/nginx \
&& chmod +x /start.sh
&& npm install -g gulp-typedoc typedoc\
&& mkdir /run/nginx

COPY docs-watcher/start.sh /

RUN chmod +x /start.sh

ENTRYPOINT [ "/start.sh" ]

Expand Down

0 comments on commit e5707c8

Please sign in to comment.