-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (41 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
49 lines (41 loc) · 1.12 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM openresty/openresty:alpine
ENV LIBVIPS_VERSION=8.17.3
WORKDIR /data
EXPOSE 8080
RUN apk add --no-cache --virtual build-deps gcc g++ make build-base curl perl \
&& \
apk add --no-cache vips vips-dev ca-certificates
RUN /usr/local/openresty/bin/opm install pintsized/lua-resty-http \
&& \
/usr/local/openresty/bin/opm install bungle/lua-resty-prettycjson \
&& \
/usr/local/openresty/bin/opm install golgote/neturl \
&& \
mkdir -p /usr/local/openresty/site/lualib/resty
COPY ./helper /tmp/helper
RUN cd /tmp/helper \
&& \
touch * \
&& \
make clean \
&& \
make install \
&& \
cd /tmp \
&& \
rm -rf /tmp/helper \
&& \
ldconfig /usr/local/lib \
&& \
apk del build-deps \
&& \
rm -rf /var/cache/apk/*
COPY ./entrypoint.sh /entrypoint.sh
RUN mkdir -p /var/run/openresty-assetry/logs \
&& \
mkdir -p /var/run/openresty-assetry/cache \
&& \
chmod +x /entrypoint.sh
COPY ./nginx.conf /var/run/openresty-assetry/nginx.conf
COPY ./lib/resty/* /usr/local/openresty/site/lualib/resty/
ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ]