-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdockerfile
More file actions
29 lines (16 loc) · 790 Bytes
/
dockerfile
File metadata and controls
29 lines (16 loc) · 790 Bytes
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 openresty/openresty:alpine-fat as build
RUN apk add openssl openssl-dev
RUN luarocks install penlight && \
luarocks install luacrypto && \
luarocks install lua-resty-jwt
FROM openresty/openresty:alpine
WORKDIR /var/www/html
COPY --from=build /usr/local/openresty/luajit/share/lua/5.1 /usr/local/openresty/luajit/share/lua/5.1
COPY ./ /var/www/html
COPY config/env.docker.lua /var/www/html/config/env.lua
COPY deploy/nginx/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
COPY deploy/nginx/nginx.vh.default.conf /etc/nginx/conf.d/default.conf
RUN mkdir -p /tmp/cache/nginx
ADD deploy/nginx/docker-openresty-entrypoint /usr/local/bin/
ENTRYPOINT [ "/usr/local/bin/docker-openresty-entrypoint" ]
CMD ["/usr/local/openresty/bin/openresty", "-g", "daemon off;"]