forked from auto-ssl/lua-resty-auto-ssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-test-alpine
45 lines (37 loc) · 1000 Bytes
/
Dockerfile-test-alpine
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
FROM openresty/openresty:1.15.8.2-1-alpine-fat
RUN mkdir /app
WORKDIR /app
# Runtime dependencies
RUN apk add --no-cache \
bash \
curl \
diffutils \
grep \
openssl \
sed
# Build dependencies.
RUN apk add --no-cache \
make
# Test dependencies
RUN apk add --no-cache \
findutils \
gcc \
git \
lsof \
lua \
procps \
redis \
sudo \
tzdata \
wget && \
curl -fsSL -o /tmp/ngrok.tar.gz https://bin.equinox.io/a/naDTyS8Kyxv/ngrok-2.3.34-linux-386.tar.gz && \
tar -xvf /tmp/ngrok.tar.gz -C /usr/local/bin/ && \
rm -f /tmp/ngrok.tar.gz && \
chmod +x /usr/local/bin/ngrok
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"]