-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 889 Bytes
/
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
31
32
33
34
35
36
37
38
FROM nginx:latest
MAINTAINER Michael Trunner <[email protected]>
# Install some debian stuff
RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
ca-certificates \
wget \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Configure Nginx
COPY nginx.conf /etc/nginx/nginx.conf
# Install free_tls_certificates
RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
build-essential \
libssl-dev \
libffi-dev \
python-dev \
python-pip \
&& pip install free_tls_certificates
ENV RPROXY_DOCUMENT_ROOT /srv/rproxy/webroot
RUN mkdir -p ${RPROXY_DOCUMENT_ROOT}
COPY rproxy.py /srv/rproxy/rproxy.py
COPY templates /srv/rproxy/templates
WORKDIR /srv/rproxy
VOLUME ["/srv/rproxy/vhost/"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/srv/rproxy/rproxy.py", "-v", "run"]