This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad34fe4
commit 1275b45
Showing
3 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM debian:jessie | ||
|
||
WORKDIR / | ||
RUN apt-get update && apt-get install -y unzip curl python-requests | ||
RUN curl -Ls -o /master.zip https://github.com/certbot/certbot/archive/master.zip | ||
RUN unzip master.zip \ | ||
&& cd certbot-master \ | ||
&& ./certbot-auto --help \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV CERTBOT_VERSION=0.8.1 | ||
RUN apt-get update \ | ||
&& apt-get install -y unzip curl python-pip \ | ||
&& pip install --upgrade pip \ | ||
&& pip install virtualenv --upgrade \ | ||
&& curl -Ls -o /certbot.zip https://github.com/certbot/certbot/archive/v${CERTBOT_VERSION}.zip \ | ||
&& unzip certbot.zip \ | ||
&& mv certbot-${CERTBOT_VERSION} certbot \ | ||
&& cd certbot \ | ||
&& ./certbot-auto --os-packages-only --noninteractive \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
EXPOSE 80 | ||
|
||
WORKDIR /certbot-master | ||
COPY run.sh /certbot-master/run.sh | ||
COPY post_cert.py /certbot-master/post_cert.py | ||
WORKDIR /certbot | ||
COPY run.sh /certbot/run.sh | ||
COPY post_cert.py /certbot/post_cert.py | ||
|
||
ENTRYPOINT ["/certbot-master/run.sh"] | ||
ENTRYPOINT ["/certbot/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters