-
Notifications
You must be signed in to change notification settings - Fork 0
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
33ec281
commit 578101a
Showing
1 changed file
with
7 additions
and
2 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 |
---|---|---|
|
@@ -5,10 +5,15 @@ FROM cogset/cron:latest | |
|
||
MAINTAINER Cogset <[email protected]> | ||
|
||
ENV LETS_ENCRYPT_VERSION v0.14.2 | ||
|
||
# Install | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends git ca-certificates python3 \ | ||
&& git clone https://github.com/letsencrypt/letsencrypt /usr/local/letsencrypt \ | ||
&& apt-get install -y --no-install-recommends wget git ca-certificates python3 \ | ||
&& wget -O letsencrypt.tar.gz "https://github.com/certbot/certbot/archive/$LETS_ENCRYPT_VERSION.tar.gz" \ | ||
&& mkdir -p /usr/local/letsencrypt \ | ||
&& tar -xzf letsencrypt.tar.gz -C /usr/local/letsencrypt --strip-components=1 \ | ||
&& rm letsencrypt.tar.gz \ | ||
&& ln -s /usr/local/letsencrypt/letsencrypt-auto /usr/bin/letsencrypt-auto \ | ||
&& letsencrypt-auto certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|