Skip to content

Instantly share code, notes, and snippets.

@tomviner
Created November 29, 2019 20:16
Show Gist options
  • Save tomviner/28b4496dbac06d0776536c1fe5785c02 to your computer and use it in GitHub Desktop.
Save tomviner/28b4496dbac06d0776536c1fe5785c02 to your computer and use it in GitHub Desktop.
Compile requirements in docker container - to force Linux platform.
services:
build-reqs:
build:
context: .
volumes:
- .:/reqs
FROM python:3.7-slim-stretch AS builder
RUN python -m pip install -U pip setuptools wheel pip-tools
CMD ["/reqs/compile-all.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment