Skip to content

Instantly share code, notes, and snippets.

@LondonAppDev
Created December 18, 2018 13:45
Show Gist options
  • 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