Skip to content

Instantly share code, notes, and snippets.

@bjorndown
Created March 2, 2019 16:23
Show Gist options
  • Save bjorndown/730c9fe38df45c8c71ff9dbef135af17 to your computer and use it in GitHub Desktop.
Save bjorndown/730c9fe38df45c8c71ff9dbef135af17 to your computer and use it in GitHub Desktop.
cryptography pip multi stage build on alpine
FROM python:3-alpine as builder
RUN apk add --no-cache gcc python3-dev libffi-dev openssl-dev build-base
RUN pip3 install cryptography
FROM python:3-alpine as release
COPY --from=builder /root/.cache /root/.cache
RUN pip3 install cryptography
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment