Skip to content

Commit

Permalink
ci(dockerfile): Move the gitbook:install step after the guide files a…
Browse files Browse the repository at this point in the history
…re copied into the Docker image
  • Loading branch information
ryanoglesby08 committed Dec 8, 2017
1 parent ff00cfa commit dbd216c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ COPY .npmrc package.json yarn.lock ./
# Install dependencies.
RUN set -ex && \
yarn install --pure-lockfile && \
yarn cache clean && \
yarn gitbook:install
yarn cache clean

# Copy all source and test files into the working directory.
# We use a .dockerignore file to prevent unnecessary or large files from being inadvertently copied.
COPY . /app

# Build the app.
RUN yarn run build-package && \
yarn gitbook:install && \
STYLEGUIDIST_ENV=staging yarn run build:docs-staging && \
STYLEGUIDIST_ENV=production yarn run build-styleguide

Expand Down

0 comments on commit dbd216c

Please sign in to comment.