First!
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
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"]
|
Reference in New Issue
Block a user