-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
28 lines (20 loc) · 764 Bytes
/
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
FROM nginx:latest
MAINTAINER Valentin DEVILLE <contact@valentin-deville.eu>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y --no-install-recommends php-fpm apache2-utils wget ca-certificates unzip && \
wget -O /tmp/h5ai.zip https://release.larsjung.de/h5ai/h5ai-0.29.0.zip && \
unzip /tmp/h5ai.zip -d /h5ai && \
chown -R www-data: /h5ai/ && \
rm -f /etc/nginx/conf.d/* /tmp/* && \
usermod -aG www-data nginx
EXPOSE 80
# Fix data location
COPY class-setup.php /h5ai/_h5ai/private/php/core/class-setup.php
# Create nginx configuration
COPY h5ai-nginx.conf /etc/nginx/conf.d/h5ai-nginx.conf
# Copy entrypoint
COPY entrypoint.sh /root/entrypoint.sh
RUN chmod +x /root/entrypoint.sh
VOLUME /h5ai
CMD ["bash", "/root/entrypoint.sh"]