-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 941 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
29
30
31
32
33
34
35
36
37
38
# Dockerfile Raspberry Pi Nginx
FROM hypriot/rpi-alpine-scratch
RUN apk update && \
apk add nginx \
php-fpm \
php-curl \
php \
php-json \
php-gd \
php-sqlite3 \
php-common \
php-xml \
php-apcu \
supervisor
RUN mkdir /data /etc/nginx/sites-available /etc/nginx/sites-enabled /var/www/html
# COPY PHP-FPM Configuration
COPY ./nginx/conf.d/php5-fpm.conf /etc/nginx/conf.d/php5-fpm.conf
# COPY nginx/sites-available/default
COPY ./nginx/sites-available/default /etc/nginx/sites-available/default
RUN ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
# COPY index.php info
COPY ./phpinfo.php /var/www/html/phpinfo.php
# COPY Supervisor
COPY ./etc/supervisord.conf /etc/
COPY ./etc/supervisor.d/agent.ini /etc/supervisor.d/
# Ports
EXPOSE 80 443
# Boot up Nginx, and PHP5-FPM when container is started
CMD /usr/bin/supervisord --nodaemon --configuration /etc/supervisord.conf