mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04:00
Move to multistage Dockerfile
This commit is contained in:
parent
644328170c
commit
971ed2542a
2 changed files with 0 additions and 62 deletions
|
|
@ -1,48 +0,0 @@
|
|||
# Docker Arch (amd64, arm32v6, ...)
|
||||
ARG TARGET_ARCH
|
||||
FROM ${TARGET_ARCH}/python:3.10-alpine3.16
|
||||
|
||||
# Qemu Arch (x86_64, arm, ...)
|
||||
ARG QEMU_ARCH
|
||||
ENV QEMU_ARCH=${QEMU_ARCH}
|
||||
COPY qemu-${QEMU_ARCH}-static /usr/bin/
|
||||
|
||||
ENTRYPOINT [ "certbot" ]
|
||||
EXPOSE 80 443
|
||||
VOLUME /etc/letsencrypt /var/lib/letsencrypt
|
||||
WORKDIR /opt/certbot
|
||||
|
||||
# Copy certbot code
|
||||
COPY CHANGELOG.md README.rst src/
|
||||
COPY tools tools
|
||||
COPY acme src/acme
|
||||
COPY certbot src/certbot
|
||||
|
||||
# Install certbot runtime dependencies
|
||||
RUN apk add --no-cache --virtual .certbot-deps \
|
||||
libffi \
|
||||
libssl1.1 \
|
||||
openssl \
|
||||
ca-certificates \
|
||||
binutils
|
||||
|
||||
# We set this environment variable and install git while building to try and
|
||||
# increase the stability of fetching the rust crates needed to build the
|
||||
# cryptography library
|
||||
ARG CARGO_NET_GIT_FETCH_WITH_CLI=true
|
||||
# Install certbot from sources
|
||||
RUN apk add --no-cache --virtual .build-deps \
|
||||
gcc \
|
||||
linux-headers \
|
||||
openssl-dev \
|
||||
musl-dev \
|
||||
libffi-dev \
|
||||
python3-dev \
|
||||
cargo \
|
||||
git \
|
||||
&& python tools/pipstrap.py \
|
||||
&& python tools/pip_install.py --no-cache-dir \
|
||||
--editable src/acme \
|
||||
--editable src/certbot \
|
||||
&& apk del .build-deps \
|
||||
&& rm -rf ${HOME}/.cargo
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
# Certbot image to build on (e.g. certbot/certbot:amd64-v0.35.0)
|
||||
ARG BASE_IMAGE
|
||||
FROM ${BASE_IMAGE}
|
||||
|
||||
# Qemu Arch (x86_64, arm, ...)
|
||||
ARG QEMU_ARCH
|
||||
ENV QEMU_ARCH=${QEMU_ARCH}
|
||||
COPY qemu-${QEMU_ARCH}-static /usr/bin/
|
||||
|
||||
# Copy Certbot DNS plugin code
|
||||
COPY . /opt/certbot/src/plugin
|
||||
|
||||
# Install the DNS plugin
|
||||
RUN python tools/pip_install.py --no-cache-dir --editable /opt/certbot/src/plugin
|
||||
Loading…
Reference in a new issue