13 lines
324 B
Docker
13 lines
324 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache nginx python3 py3-virtualenv
|
|
|
|
RUN python3 -m venv /venv
|
|
RUN /venv/bin/pip install certbot certbot-nginx
|
|
ENV PATH="/venv/bin:$PATH"
|
|
|
|
RUN /venv/bin/pip cache purge && /venv/bin/pip uninstall -y pip
|
|
RUN apk del py3-virtualenv && rm -rf /var/cache/apk
|
|
|
|
COPY ./run.sh /
|
|
CMD ["/run.sh"]
|