forked from auto-ssl/lua-resty-auto-ssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-test
43 lines (34 loc) · 893 Bytes
/
Dockerfile-test
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
FROM openresty/openresty:1.15.8.1-4-centos
# Runtime dependencies
RUN yum -y install \
bash \
coreutils \
curl \
diffutils \
grep \
openssl \
sed
# Build dependencies.
RUN yum -y install make
# Dependencies for the release process.
RUN yum -y install git zip
# Test dependencies
RUN yum -y install epel-release && \
yum -y install \
gcc \
git \
lsof \
lua \
procps-ng \
redis \
sudo \
https://bin.equinox.io/a/6iuHhJeWypm/ngrok-2.3.34-linux-amd64.rpm
RUN mkdir /app
WORKDIR /app
COPY Makefile /app/Makefile
RUN make install-test-deps
ENV PATH="/tmp/resty-auto-ssl-test-luarocks/bin:${PATH}"
ENV LUA_PATH="/tmp/resty-auto-ssl-test-luarocks/share/lua/5.1/?.lua;/tmp/resty-auto-ssl-test-luarocks/share/lua/5.1/?/init.lua;${LUA_PATH}"
ENV LUA_CPATH="/tmp/resty-auto-ssl-test-luarocks/lib/lua/5.1/?.so;${LUA_CPATH}"
COPY . /app
CMD ["bash"]