Created
March 2, 2019 16:23
-
-
Save bjorndown/730c9fe38df45c8c71ff9dbef135af17 to your computer and use it in GitHub Desktop.
cryptography pip multi stage build on alpine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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