You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can add && rm -rf /var/lib/apt/lists/*at the end to remove some cached files... you will save few MB on your images.
RUN rm -rf /var/app/.git
This is not the right way to remove data because they will still present in the previous layer. You should use .dockerignore file to exclude that directory.
RUN cd /var/app; \
/usr/bin/composer update; \
./scripts/post-create-project
You should use && for chaining commands to avoid silent failures. In general you can use that also for reducing the number of layers by reducing the number of RUNinstructions.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I just would like to give you some feedbacks about your docker integration.
&& rm -rf /var/lib/apt/lists/*
at the end to remove some cached files... you will save few MB on your images.RUN rm -rf /var/app/.git
&&
for chaining commands to avoid silent failures. In general you can use that also for reducing the number of layers by reducing the number ofRUN
instructions.Thanks.
The text was updated successfully, but these errors were encountered: