Skip to content

Commit

Permalink
Optimize Dockerfile
Browse files Browse the repository at this point in the history
Optimize Dockerfile, reduce build time.
  • Loading branch information
Ryan Wade committed Apr 6, 2017
1 parent 51d7caa commit a2637c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ public/assets
node_modules
storybook
neo4j
vendor/bundle
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV RAILS_ENV=production \

WORKDIR /mastodon

COPY . /mastodon
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/

RUN BUILD_DEPS=" \
postgresql-dev \
Expand All @@ -28,4 +28,6 @@ RUN BUILD_DEPS=" \
&& apk del $BUILD_DEPS \
&& rm -rf /tmp/* /var/cache/apk/*

COPY . /mastodon

VOLUME /mastodon/public/system /mastodon/public/assets

0 comments on commit a2637c1

Please sign in to comment.