diff options
author | William Budington <bill@eff.org> | 2015-05-20 03:39:53 +0300 |
---|---|---|
committer | William Budington <bill@eff.org> | 2015-05-20 03:39:53 +0300 |
commit | 2fe8a75200b4ee85ec22cdb54e3f8760619bf953 (patch) | |
tree | ac8df9002db0c46314bb87c1b6236088a1240e91 /Dockerfile | |
parent | e4e4c69f369406842ecc92bccf86ad1899085f3f (diff) |
Use a discrete path for venv in docker, rather than /opt/letsencrypt.
This is useful for the docker development container, which we will want
venv to persist for across runs.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile index 6fbc6d240..b6a07388c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,14 +48,14 @@ COPY letsencrypt_apache /opt/letsencrypt/src/letsencrypt_apache/ COPY letsencrypt_nginx /opt/letsencrypt/src/letsencrypt_nginx/ -RUN virtualenv --no-site-packages -p python2 /opt/letsencrypt && \ - /opt/letsencrypt/bin/pip install -e /opt/letsencrypt/src +RUN virtualenv --no-site-packages -p python2 /opt/letsencrypt/venv && \ + /opt/letsencrypt/venv/bin/pip install -e /opt/letsencrypt/src # install in editable mode (-e) to save space: it's not possible to # "rm -rf /opt/letsencrypt/src" (it's stays in the underlaying image); # this might also help in debugging: you can "docker run --entrypoint # bash" and investigate, apply patches, etc. -ENV PATH /opt/letsencrypt/bin:$PATH +ENV PATH /opt/letsencrypt/venv/bin:$PATH # TODO: is --text really necessary? ENTRYPOINT [ "letsencrypt", "--text" ] |