Skip to content

Instantly share code, notes, and snippets.

@andrewp-as-is
Last active July 18, 2021 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewp-as-is/6d5e2ce6a3750b789b1e640fb3ebc127 to your computer and use it in GitHub Desktop.
Save andrewp-as-is/6d5e2ce6a3750b789b1e640fb3ebc127 to your computer and use it in GitHub Desktop.
Docker alpine psycopg2
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