2015-08-03 15:36:35 -04:00
|
|
|
# This Dockerfile builds an image for development.
|
2018-02-16 12:51:27 -05:00
|
|
|
FROM ubuntu:xenial
|
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
|
|
|
|
|
|
|
|
# TODO: Install Apache/Nginx for plugin development.
|
2018-02-16 12:51:27 -05:00
|
|
|
COPY . .
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install apache2 git nginx-light -y && \
|
|
|
|
|
letsencrypt-auto-source/letsencrypt-auto --os-packages-only && \
|
2015-08-03 15:36:35 -04:00
|
|
|
apt-get clean && \
|
|
|
|
|
rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
/tmp/* \
|
|
|
|
|
/var/tmp/*
|
|
|
|
|
|
2018-02-16 12:51:27 -05:00
|
|
|
RUN VENV_NAME="../venv" tools/venv.sh
|
2015-08-03 15:36:35 -04:00
|
|
|
|
2016-04-14 13:20:23 -04:00
|
|
|
ENV PATH /opt/certbot/venv/bin:$PATH
|