Skip to content

Commit 00aea99

Browse files
Update dockerfile for new ubuntu LTS :)
1 parent 56c92c7 commit 00aea99

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
FROM ubuntu:bionic
2+
FROM ubuntu:focal
33
#RUN rm /bin/sh && ln -s /bin/bash /bin/sh
44

55
#variables
@@ -34,9 +34,13 @@ RUN apt-get install apache2 -y && \
3434
apt-get install php php-dev php-pear libapache2-mod-php -y && \
3535

3636
#install certbot, sendmail and ssmtp for ssl and mails
37-
add-apt-repository ppa:certbot/certbot -y && \
38-
apt-get update && \
39-
apt-get install python-certbot-apache -y
37+
apt update && \
38+
apt install python3 python3-venv libaugeas0 -y && \
39+
python3 -m venv /opt/certbot/ && \
40+
/opt/certbot/bin/pip install --upgrade pip && \
41+
/opt/certbot/bin/pip install certbot certbot-apache && \
42+
ln -s /opt/certbot/bin/certbot /usr/bin/certbot
43+
4044

4145
COPY ./scripts /scripts
4246
COPY ./entrypoint-custom /

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### php-apache-certbot
2-
Docker image with php, pear, xdiff, pagespeed, apache and certbot. Based on ubuntu:bionic
2+
Docker image with php, pear, xdiff, pagespeed, apache and certbot. Based on ubuntu:focal
3+
(Old version based on ubuntu:bionic is available on build monkeycompany/php-apache-certbot:e26af93)
34

45
Docker hub : [monkeycompany/php-apache-certbot](https://hub.docker.com/r/monkeycompany/php-apache-certbot/)
56

@@ -12,10 +13,11 @@ Github project : [monkey-company/php-apache-certbot](https://github.com/monkey-c
1213
[![Monkey Company](https://img.shields.io/badge/Monkey-Company-red.svg?longCache=true&style=flat)](https://themonkey.co/)
1314
![GitHub](https://img.shields.io/github/license/monkey-company/php-apache-certbot.svg)
1415
[![Build Status](https://travis-ci.org/monkey-company/php-apache-certbot.svg?branch=master)](https://travis-ci.org/monkey-company/php-apache-certbot)
16+
[![Docker Pulls](https://img.shields.io/docker/pulls/monkeycompany/php-apache-certbot.svg)](https://hub.docker.com/r/monkeycompany/php-apache-certbot/)
17+
[![Docker Stars](https://img.shields.io/docker/stars/monkeycompany/php-apache-certbot)](https://hub.docker.com/r/monkeycompany/php-apache-certbot/)
1518
![GitHub last commit](https://img.shields.io/github/last-commit/monkey-company/php-apache-certbot.svg)
1619
[![GitHub release](https://img.shields.io/github/release/monkey-company/php-apache-certbot.svg)](https://github.com/monkey-company/php-apache-certbot/releases/latest)
1720
![GitHub repo size in bytes](https://img.shields.io/github/repo-size/monkey-company/php-apache-certbot.svg)
18-
[![Docker Pulls](https://img.shields.io/docker/pulls/monkeycompany/php-apache-certbot.svg)](https://hub.docker.com/r/monkeycompany/php-apache-certbot/)
1921
![GitHub language count](https://img.shields.io/github/languages/count/monkey-company/php-apache-certbot.svg)
2022

2123
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmonkey-company%2Fphp-apache-certbot.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmonkey-company%2Fphp-apache-certbot?ref=badge_large)

0 commit comments

Comments
 (0)