-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (30 loc) · 1004 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
FROM nginx:alpine
MAINTAINER "Lucas Oliveira" <"https://github.com/LuksJobs/certbot-on-alpine">
LABEL Name="Certbot-on-Alpine"
LABEL Version="1.0"
WORKDIR /opt/certbot
ENV PATH /opt/certbot/venv/bin:$PATH
RUN export BUILD_DEPS="git \
build-base \
libffi-dev \
linux-headers \
py-pip \
python-dev" \
&& apk -U upgrade \
&& apk add dialog \
python \
openssl-dev \
augeas-libs \
${BUILD_DEPS} \
&& pip --no-cache-dir install virtualenv \
&& git clone https://github.com/letsencrypt/letsencrypt /opt/certbot/src \
&& virtualenv --no-site-packages -p python2 /opt/certbot/venv \
&& /opt/certbot/venv/bin/pip install \
-e /opt/certbot/src/acme \
-e /opt/certbot/src \
-e /opt/certbot/src/certbot-nginx \
&& apk del ${BUILD_DEPS} \
&& rm -rf /var/cache/apk/*
EXPOSE 443 80
VOLUME /etc/letsencrypt
ENTRYPOINT ["certbot"]