2015-08-03 15:36:35 -04:00
|
|
|
# This Dockerfile builds an image for development.
|
2021-04-05 19:02:14 -04:00
|
|
|
FROM ubuntu:focal
|
2015-08-03 15:36:35 -04:00
|
|
|
|
2018-02-16 12:51:27 -05:00
|
|
|
# Note: this only exposes the port to other docker containers.
|
|
|
|
|
EXPOSE 80 443
|
2015-08-03 15:36:35 -04:00
|
|
|
|
2017-03-10 20:27:09 -05:00
|
|
|
WORKDIR /opt/certbot/src
|
2015-08-03 15:36:35 -04:00
|
|
|
|
2018-02-16 12:51:27 -05:00
|
|
|
COPY . .
|
|
|
|
|
RUN apt-get update && \
|
2021-04-05 19:02:14 -04:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install apache2 git python3-dev \
|
|
|
|
|
python3-venv gcc libaugeas0 libssl-dev libffi-dev ca-certificates \
|
|
|
|
|
openssl nginx-light -y --no-install-recommends && \
|
2015-08-03 15:36:35 -04:00
|
|
|
apt-get clean && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
/tmp/* \
|
|
|
|
|
/var/tmp/*
|
|
|
|
|
|
2021-02-03 15:03:09 -05:00
|
|
|
RUN VENV_NAME="../venv" python3 tools/venv.py
|
2015-08-03 15:36:35 -04:00
|
|
|
|
2021-02-03 15:03:09 -05:00
|
|
|
ENV PATH /opt/certbot/venv/bin:$PATH
|