2023-10-13 09:57:42 -04:00
|
|
|
FROM docker.io/python:3.8-buster
|
|
|
|
|
LABEL maintainer="Brad Warren <bmw@eff.org>"
|
2016-08-10 19:08:30 -04:00
|
|
|
|
2023-04-08 21:49:08 -04:00
|
|
|
# This does not include the dependencies needed to build cryptography. See
|
|
|
|
|
# https://cryptography.io/en/latest/installation/#building-cryptography-on-linux
|
2020-09-09 18:16:52 -04:00
|
|
|
RUN apt-get update && \
|
2023-04-08 21:49:08 -04:00
|
|
|
apt install python3-venv libaugeas0 -y
|
2016-08-10 19:08:30 -04:00
|
|
|
|
2020-09-09 18:16:52 -04:00
|
|
|
WORKDIR /opt/certbot/src
|
2016-08-10 19:08:30 -04:00
|
|
|
|
2020-09-09 18:16:52 -04:00
|
|
|
# We copy all contents of the build directory to allow us to easily use
|
2021-02-03 15:03:09 -05:00
|
|
|
# things like tools/venv.py which expects all of our packages to be available.
|
2020-09-09 18:16:52 -04:00
|
|
|
COPY . .
|
2016-08-10 19:08:30 -04:00
|
|
|
|
2021-02-03 15:03:09 -05:00
|
|
|
RUN tools/venv.py
|
|
|
|
|
ENV PATH /opt/certbot/src/venv/bin:$PATH
|
2016-08-10 19:08:30 -04:00
|
|
|
|
|
|
|
|
# install in editable mode (-e) to save space: it's not possible to
|
2021-09-02 16:43:13 -04:00
|
|
|
# "rm -rf /opt/certbot/src" (it's stays in the underlying image);
|
2016-08-10 19:08:30 -04:00
|
|
|
# this might also help in debugging: you can "docker run --entrypoint
|
|
|
|
|
# bash" and investigate, apply patches, etc.
|
|
|
|
|
|
2016-08-10 19:32:38 -04:00
|
|
|
WORKDIR /opt/certbot/src/certbot-compatibility-test/certbot_compatibility_test/testdata
|