Please include mysqldump
Closed this issue · 1 comments
Hello
I have an Laravel Application which makes a backup on its own when updating.
Sadly i get a lot of errors due to the missing command mysqldump
Could you please include the command in the image.
Thanks a lot and best regards
DKeppi
Hi @DKeppi
The Docker images we provide are primarily focused on creating an environment for PHP and web server applications written in pure PHP. To keep the Docker image size optimized, we do not pre-install tools that may not be needed by every application.
If you need additional tools like mysqldump
, you can install them using apk
(on Alpine Linux) or apt
(on Debian) commands in your Dockerfile.
Here’s an example:
For Alpine Linux:
FROM shinsenter/php:latest-alpine
# Install mysqldump
RUN apk --no-cache add mysql-client
# Your other commands
...
For Debian:
FROM shinsenter/php:latest
# Install mysqldump
RUN apt-get update && apt-get install -y mysql-client && rm -rf /var/lib/apt/lists/*
# Your other commands
...
To build a Docker image from the above Dockerfile, navigate to the directory containing your Dockerfile and run the following command:
docker build -t 'shinsenter/php:latest-with-mysqldump' .
I hope this helps resolve the issue.