Skip to content

Instantly share code, notes, and snippets.

@LondonAppDev
Created December 18, 2018 13:45
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 LondonAppDev/58bcfd9b6267a60beda660aa91df6ddd to your computer and use it in GitHub Desktop.
Save LondonAppDev/58bcfd9b6267a60beda660aa91df6ddd to your computer and use it in GitHub Desktop.
C2 Dockerfile
...
# Install dependencies
COPY ./requirements.txt /requirements.txt
RUN apk add --update --no-cache postgresql-client
RUN apk add --update --no-cache --virtual .tmp-build-deps \
gcc libc-dev linux-headers postgresql-dev
RUN pip install -r /requirements.txt
RUN apk del .tmp-build-deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment