Skip to content

Commit

Permalink
fixed ci docker image build issue;
Browse files Browse the repository at this point in the history
updated docker image to alpine 3.14;
pinned certbot version
  • Loading branch information
infinityofspace committed Jul 2, 2021
1 parent 492c4d3 commit 100a387
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
FROM python:3.9-alpine3.13 as build-image
FROM alpine:3.14

RUN apk add --no-cache gcc musl-dev libffi-dev openssl-dev cargo

RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN apk add --no-cache python3 py3-pip py3-cryptography

WORKDIR /certbot_dns_duckdns

COPY build-requirements.txt build-requirements.txt
RUN pip install -r build-requirements.txt
COPY docker-build-requirements.txt docker-build-requirements.txt
RUN pip install -r docker-build-requirements.txt

COPY . .

RUN pip install .

FROM python:3.9-alpine3.13

COPY --from=build-image /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

ENTRYPOINT ["certbot"]
2 changes: 1 addition & 1 deletion build-requirements.txt → docker-build-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests>=2.20.0
certbot>=1.7.0
certbot==1.16.0
zope.interface>=5.0.0

0 comments on commit 100a387

Please sign in to comment.