A bunch of things
This commit is contained in:
@@ -3,8 +3,9 @@ FROM debian:bookworm
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV DEBCONF_NONINTERACTIVE_SEEN=true
|
||||
|
||||
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y; apt-get install mariadb-server mariadb-client iputils-ping -y --download-only
|
||||
RUN apt-get update; apt-get full-upgrade -y; apt-get autoclean -y; apt-get install iputils-ping -y; apt-get install mariadb-server mariadb-client -y --download-only
|
||||
|
||||
COPY project/entrypoint/entrypoint.sh /entrypoint/entrypoint.sh
|
||||
COPY project/entrypoint/install-packages.sh /entrypoint/install-packages.sh
|
||||
|
||||
ENTRYPOINT ["/bin/sh", "/entrypoint/entrypoint.sh"]
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
|
||||
service mariadb start
|
||||
|
||||
chown -R mysql:mysql /run/mysql
|
||||
chown -R mysql:mysql /var/lib/mysql
|
||||
|
||||
/bin/sh /entrypoint/install-packages.sh
|
||||
|
||||
service mariadb start
|
||||
|
||||
# Run the CMD that was passed (or default)
|
||||
exec "$@"
|
||||
|
||||
|
||||
3
mariadb-srv/project/entrypoint/install-packages.sh
Normal file
3
mariadb-srv/project/entrypoint/install-packages.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
apt-get update; apt-get full-upgrade -y; apt-get install mariadb-server mariadb-client -y
|
||||
Reference in New Issue
Block a user