previousnext / containers Goto Github PK
View Code? Open in Web Editor NEWThe official container suite for Skipper, PreviousNext's hosting platform.
The official container suite for Skipper, PreviousNext's hosting platform.
When running apt-get install foo
, the result is cached and requires an apt-get clean
to remove this cache.
However, adding
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
As an initial step will mean that packages are not cached with apt, and will not require an apt-get clean.
Thoughts?
containers/gastonjs/1.0.2/Dockerfile
Line 8 in 6eae0fd
Line 8: RUN apt-get update && \
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/5.6-apache-jessie/base/Dockerfile
Issues: 4
Line 9: RUN apt-get update && \
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
Line 26: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue Category Title Description
3 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
4 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/5.6-apache-jessie/dev/Dockerfile
Issues: 2
Line 23: RUN apt-get update && \
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/7.x-apache-jessie/base/Dockerfile
Issues: 3
Line 10: RUN apt-get update && \
Issue Category Title Description
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
Line 28: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue Category Title Description
3 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/7.x-apache-jessie/dev/Dockerfile
Issues: 3
Line 24: RUN apt-get update && \
Issue Category Title Description
2 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
3 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/7.x-apache-stretch/base/Dockerfile
Issues: 3
Line 10: RUN apt-get update && \
Issue Category Title Description
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
Line 27: RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee
/etc/apt/sources.list.d/newrelic.list && \
Issue Category Title Description
3 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
File: php/7.x-apache-stretch/dev/Dockerfile
Issues: 3
Line 24: RUN apt-get update && \
Issue Category Title Description
2 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
3 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
containers/pnx-packager/Dockerfile
Line 3 in 6eae0fd
Line 3: RUN apt-get update && apt-get install -y git curl make && rm -rf /var/cache/apt/*
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
Line 1 in 6eae0fd
Line 1: FROM mailhog/mailhog
Issue Category Title Description
1 Clarity Base Image Missing Base images should specify a tag to use.
Tag
containers/passenger/base/Dockerfile
Line 9 in 6eae0fd
File: passenger/base/Dockerfile
Issues: 4
Line 9: RUN apt-get update && \
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
Line 14: RUN apt-get update && \
Issue Category Title Description
3 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
4 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
containers/passenger/dev/Dockerfile
Line 7 in 6eae0fd
File: passenger/dev/Dockerfile
Issues: 2
Line 7: RUN apt-get update && \
Issue Category Title Description
1 Optimization apt-get update with Use of apt-get update should be paired with rm -rf
matching cache rm /var/lib/apt/lists/* in the same layer.
2 Optimization Consider Consider using a `--no-install-recommends` when `apt-get`
`--no-install-recomm installing packages. This will result in a smaller image size.
ends` For
more information, see [this blog
post](http://blog.replicated.com/2016/02/05/refactoring-a-dockerfil
e-for-image-size/)
containers/varnish/4.x/dev/Dockerfile
Line 6 in 6eae0fd
File: varnish/4.x/dev/Dockerfile
Issues: 1
Line 6: RUN apk update && \
Issue Category Title Description
1 Optimization Consider `--no-cache Consider using a `--no-cache` (supported in alpine linux >= 3.3) or
or --update with rm `--update` followed by the command `rm -rf /var/cache/apk/*` when
-rf `apk` adding packages. This will result in a smaller image size.
/var/cache/apk/*` For
more information, see [this
link](https://github.com/gliderlabs/docker-alpine/blob/master/docs/
usage.md)
Arrived here via instructions at
https://www.previousnext.com.au/blog/join-us-drupalgov-2020-code-sprint#set-up-a-development-environment--2
that use a gist that references previousnext/php-apache:7.3-3.x-dev
FYI, at docker-compose run -w /data/app app composer install
I get
Creating drupal_app_run ... done
Running entrypoint.d script: /docker-entrypoint.d/blackfire.sh
Skipping Backfire: Set BLACKFIRE_ENABLED=yes to enable
Running entrypoint.d script: /docker-entrypoint.d/tuner.sh
Tuning: Apache: /var/run/tuner/apache2/tuner.conf
Tuning: PHP: /var/run/tuner/php/tuner.ini
Running entrypoint.d script: /docker-entrypoint.d/xdebug.sh
Skipping Xdebug: Set XDEBUG_ENABLED=yes to enable
Unable to locate a valid CA certificate file. You must set a valid 'cafile' option.
A valid CA certificate file is required for SSL/TLS protection.
You can disable this error, at your own risk, by setting the 'disable-tls' option to true.[Composer\Downloader\TransportException]
The configured cafile was not valid or could not be read.
Building on #65
Can we add pngquant to the apt install? This will give us a lossy png compression option for greater size reduction, as per the findings in https://www.previousnext.com.au/blog/better-image-optimisation-drupal.
Package is just named 'pngquant'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.