-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 949 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
FROM openresty/openresty:alpine
# Configuration
ARG LUAROCKS_VER=3.8.0
RUN apk add --no-cache --update build-base unzip \
&& cd /tmp \
&& wget https://luarocks.org/releases/luarocks-$LUAROCKS_VER.tar.gz \
&& tar zxpf luarocks-$LUAROCKS_VER.tar.gz \
&& cd luarocks-$LUAROCKS_VER \
&& ./configure --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
&& make \
&& make install \
&& rm -rf /tmp/*
COPY nginx.conf /usr/local/openresty/nginx/conf/
COPY commons/ /usr/local/openresty/nginx/conf/commons/
COPY conf.d/ /usr/local/openresty/nginx/conf/conf.d/
COPY luas/ /usr/local/openresty/nginx/conf/luas/
# COPY modules/ /usr/local/openresty/nginx/modules/
# Storages
COPY storages/ /var/openresty/storages/
# Logs
COPY logs/ /var/openresty/logs/
# Symlink the logs to stdout and stderr
# RUN ln -sf /dev/stdout /var/openresty/logs/access.log
# RUN ln -sf /dev/stderr /var/openresty/logs/error.log