12 lines
444 B
Docker
Executable File
12 lines
444 B
Docker
Executable File
FROM alpine:3.12.3
|
|
RUN apk update
|
|
RUN apk add mariadb mariadb-common mariadb-client openrc supervisor
|
|
COPY my.cnf /etc/my.cnf
|
|
COPY mysql.sql ./
|
|
COPY wordpress.sql ./
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
EXPOSE 3306
|
|
COPY start.sh /start.sh
|
|
RUN chmod +x /start.sh
|
|
VOLUME ["/var/lib/mysql"]
|
|
CMD ["/start.sh"] |