File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ with [FrankenPHP](https://frankenphp.dev) and [Caddy](https://caddyserver.com/)
36364 . [ Deploying in production] ( docs/production.md )
37375 . [ Debugging with Xdebug] ( docs/xdebug.md )
38386 . [ TLS Certificates] ( docs/tls.md )
39- 7 . [ Using a Makefile ] ( docs/makefile .md )
40- 8 . [ Using MySQL instead of PostgreSQL ] ( docs/mysql .md )
41- 9 . [ Troubleshooting ] ( docs/troubleshooting .md )
39+ 7 . [ Using MySQL instead of PostgreSQL ] ( docs/mysql .md )
40+ 8 . [ Using Alpine Linux instead of Debian ] ( docs/alpine .md )
41+ 9 . [ Using a Makefile ] ( docs/makefile .md )
424210 . [ Updating the template] ( docs/updating.md )
43+ 11 . [ Troubleshooting] ( docs/troubleshooting.md )
4344
4445## License
4546
Original file line number Diff line number Diff line change 1+ # Using Alpine Linux Instead of Debian
2+
3+ By default, Symfony Docker uses Debian-based FrankenPHP Docker images.
4+ This is the recommended solution.
5+
6+ Alternatively, it's possible to use Alpine-based images, which are smaller but
7+ are known to be slower, and have several known issues.
8+
9+ To switch to Alpine-based images, apply the following changes to the ` Dockerfile ` :
10+
11+ ``` patch
12+ - FROM dunglas/frankenphp:1-php8.3 AS frankenphp_upstream
13+ + FROM dunglas/frankenphp:1-alpine-php8.3 AS frankenphp_upstream
14+
15+ - # hadolint ignore=DL3008
16+ - RUN apt-get update && apt-get install -y --no-install-recommends \
17+ - acl \
18+ - file \
19+ - gettext \
20+ - git \
21+ - && rm -rf /var/lib/apt/lists/*
22+ + # hadolint ignore=DL3018
23+ + RUN apk add --no-cache \
24+ + acl \
25+ + file \
26+ + gettext \
27+ + git \
28+ + ;
29+ ```
You can’t perform that action at this time.
0 commit comments