forked from aubm/postmanerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.06 KB
/
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 alpine:3.6
ARG http_proxy
ARG https_proxy
ARG verify_ssl=y
ENV http_proxy=$http_proxy
ENV https_proxy=$https_proxy
ENV verify_ssl=$verify_ssl
RUN apk update \
&& apk add ca-certificates wget git \
&& update-ca-certificates \
&& mkdir -p /root/.postmanerator/themes \
&& cd /root/.postmanerator/themes \
&& if [ "${verify_ssl}" = "n" ]; \
then git config --global http.sslVerify "false"; \
fi \
&& git clone https://github.com/aubm/postmanerator-default-theme.git default \
&& git clone https://github.com/zanaca/postmanerator-hu-theme.git hu \
&& git clone https://github.com/aubm/postmanerator-markdown-theme.git markdown \
&& cd /usr/bin/ \
&& if [ "${verify_ssl}" = "n" ]; \
then wget -O postmanerator https://github.com/aubm/postmanerator/releases/download/v0.8.0/postmanerator_linux_386 --no-check-certificate; \
else wget -O postmanerator https://github.com/aubm/postmanerator/releases/download/v0.8.0/postmanerator_linux_386; \
fi \
&& chmod +x postmanerator
ENTRYPOINT ["postmanerator"]
CMD ["-collection", "/usr/var/collection.json"]