Skip to content

Instantly share code, notes, and snippets.

@Tinche
Created August 24, 2018 11:24
Show Gist options
  • Save Tinche/6a32e412c3df6520952277c1303418b4 to your computer and use it in GitHub Desktop.
Save Tinche/6a32e412c3df6520952277c1303418b4 to your computer and use it in GitHub Desktop.
FROM python:3.6.5-stretch as builder
WORKDIR /app
RUN python3 -m venv .venv
COPY src/hr ./src/hr/
COPY src/fbs ./src/fbs/
COPY setup.py .
RUN .venv/bin/pip install wheel
RUN .venv/bin/pip install .
FROM python:3.6.5-slim-stretch
WORKDIR /app
COPY --from=builder /app/.venv ./.venv
ENTRYPOINT [ ".venv/bin/python"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment