Skip to content
Extraits de code Groupes Projets
Valider a2637c17 rédigé par Ryan Wade's avatar Ryan Wade
Parcourir les fichiers

Optimize Dockerfile

Optimize Dockerfile, reduce build time.
parent 51d7caaf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -5,3 +5,4 @@ public/assets
node_modules
storybook
neo4j
vendor/bundle
......@@ -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 \
......@@ -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% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter