mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Optimize Dockerfile
Optimize Dockerfile, reduce build time.
This commit is contained in:
parent
51d7caaf19
commit
a2637c1720
@ -5,3 +5,4 @@ public/assets
|
|||||||
node_modules
|
node_modules
|
||||||
storybook
|
storybook
|
||||||
neo4j
|
neo4j
|
||||||
|
vendor/bundle
|
||||||
|
@ -5,7 +5,7 @@ ENV RAILS_ENV=production \
|
|||||||
|
|
||||||
WORKDIR /mastodon
|
WORKDIR /mastodon
|
||||||
|
|
||||||
COPY . /mastodon
|
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
|
||||||
|
|
||||||
RUN BUILD_DEPS=" \
|
RUN BUILD_DEPS=" \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
@ -28,4 +28,6 @@ RUN BUILD_DEPS=" \
|
|||||||
&& apk del $BUILD_DEPS \
|
&& apk del $BUILD_DEPS \
|
||||||
&& rm -rf /tmp/* /var/cache/apk/*
|
&& rm -rf /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
|
COPY . /mastodon
|
||||||
|
|
||||||
VOLUME /mastodon/public/system /mastodon/public/assets
|
VOLUME /mastodon/public/system /mastodon/public/assets
|
||||||
|
Loading…
Reference in New Issue
Block a user