17 lines
584 B
Docker
17 lines
584 B
Docker
FROM openresty/openresty:alpine-fat
|
|
LABEL maintainer "Jiang Yio <inportb@gmail.com>"
|
|
|
|
RUN apk add --no-cache openssl socat wget inotify-tools && \
|
|
luarocks install lua-resty-openidc && \
|
|
luarocks install lua-resty-session && \
|
|
rm /etc/nginx/conf.d/default.conf && \
|
|
mv /etc/nginx/conf.d /usr/local/openresty/nginx/conf/ && \
|
|
ln -s /usr/local/openresty/nginx/conf/conf.d /etc/nginx/ && \
|
|
echo '0 12 * * * /root/.acme.sh/acme.sh --cron --home /root/.acme.sh' >> /etc/crontabs/root
|
|
RUN wget -O - https://get.acme.sh | sh
|
|
COPY app /root
|
|
|
|
WORKDIR /root
|
|
|
|
ENTRYPOINT ["/root/init.sh"]
|