Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cluelessperson/fe7e871b28c31283f3449a66efadc13e to your computer and use it in GitHub Desktop.
Save cluelessperson/fe7e871b28c31283f3449a66efadc13e to your computer and use it in GitHub Desktop.
ARG COHEN3_REPO=github.com/opacam/Cohen3
ARG COHEN3_TAG=master
FROM python:3.8.2-slim as build
ARG COHEN3_REPO
ARG COHEN3_TAG
RUN apt-get -yqq update && apt-get -yqq install git build-essential && ldconfig
RUN mkdir /wheels && cd /wheels && pip wheel git+git://${COHEN3_REPO}@${COHEN3_TAG}
FROM python:3.8.2-slim as run
COPY --from=build /wheels /wheels
RUN pip install /wheels/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment