-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 1.04 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
31
32
33
34
35
36
FROM ubuntu:latest
LABEL maintainer "tumayouzi <[email protected]>"
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ondrej/php && \
apt-get update && \
apt-get install -y nginx php7.4-fpm supervisor wget unzip patch
# Download and unzip h5ai
RUN wget https://release.larsjung.de/h5ai/h5ai-0.29.2.zip
RUN unzip h5ai-0.29.2.zip -d /usr/share/h5ai
# ADD nginx config file
ADD h5ai.nginx.conf /etc/nginx/sites-available/h5ai
RUN ln -s /etc/nginx/sites-available/h5ai /etc/nginx/sites-enabled/h5ai
RUN rm /etc/nginx/sites-enabled/default
# exec patch
ADD h5ai-path.patch patch
RUN patch -p1 -u -d /usr/share/h5ai/_h5ai/private/php/core/ -i /patch && rm patch
# php-fpm setup
RUN mkdir /run/php
# rm welcome to nginx file
RUN rm -rf /var/www/html
# use supervisor to monitor all services
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD supervisord -c /etc/supervisor/conf.d/supervisord.conf
EXPOSE 80
VOLUME /var/www