-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (24 loc) · 901 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
FROM debian
SHELL ["/bin/sh", "-x", "-c"]
RUN apt-get update \
&& apt-get -yy --option=Dpkg::options::=--force-unsafe-io upgrade \
&& apt-get -yy --option=Dpkg::options::=--force-unsafe-io install --no-install-recommends \
ca-certificates \
libnginx-mod-http-lua \
lua-json \
lua-luaossl \
lua-nginx-dns \
lua-nginx-string \
nginx-full \
php-cgi \
&& apt-get clean \
&& find /var/lib/apt/lists -type f -delete
COPY nginx nginx-mod *.lua /opt/portier/nginx/
COPY webroot /opt/portier/nginx/webroot/
RUN mkdir -p /var/cache/nginx \
&& chown www-data /var/cache/nginx \
&& chmod 750 /var/cache/nginx
RUN rm /etc/nginx/sites-enabled/default
RUN ln -s /opt/portier/nginx/nginx-mod /etc/nginx/modules-enabled/99-portier-nginx.conf
RUN ln -s /opt/portier/nginx/nginx /etc/nginx/sites-enabled/portier
ENTRYPOINT ["/bin/bash"]