-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (23 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM docker.io/library/wordpress:6
# install basic tools
RUN apt-get update && apt-get install -y less gnupg net-tools && rm -rf /var/lib/apt/lists/*
# install mysql
RUN echo 'deb http://repo.mysql.com/apt/debian/ bullseye mysql-apt-config\n\
deb http://repo.mysql.com/apt/debian/ bullseye mysql-8.0\n\
deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools\n\
deb-src http://repo.mysql.com/apt/debian/ bullseye mysql-8.0\n'\
>> /etc/apt/sources.list.d/mysql.list
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-key adv --keyserver pgp.mit.edu --keyserver keyserver.ubuntu.com --recv-keys 3A79BD29 && \
apt-get update && \
apt-get install -y mysql-server mysql-client
# install xsl php extension
RUN apt-get update && apt-get install -y libxslt-dev && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install xsl
# copy plugins
COPY code/packages /usr/src/wordpress-plugins
# copy entrypoint that configures mysql and wordpress
COPY code/deployment/ci/custom-entrypoint.sh /usr/local/bin/custom-entrypoint.sh
RUN chmod a+x /usr/local/bin/custom-entrypoint.sh
ENTRYPOINT ["custom-entrypoint.sh"]
CMD [""]