Last active
July 18, 2021 23:09
-
-
Save andrewp-as-is/6d5e2ce6a3750b789b1e640fb3ebc127 to your computer and use it in GitHub Desktop.
Docker alpine psycopg2
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.7-alpine | |
RUN apk update \ | |
&& apk add --virtual .build-deps gcc python3-dev musl-dev \ | |
&& apk add postgresql-dev \ | |
&& pip install psycopg2 \ | |
&& apk del .build-deps \ | |
&& rm -rf /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment