Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created January 26, 2021 11:13
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 oivoodoo/6fb1588a78d5ac255bf3ae7afd7be6ef to your computer and use it in GitHub Desktop.
Save oivoodoo/6fb1588a78d5ac255bf3ae7afd7be6ef to your computer and use it in GitHub Desktop.
Python package via Docker environment
version: "3"
services:
console:
build: .
volumes:
- pip-data:/root/.local/share/virtualenvs
- ./:/app:cached
command: /bin/bash
release:
build: .
volumes:
- pip-data:/root/.local/share/virtualenvs
- ./:/app:cached
command: /bin/bash -c "cd /app ; pipenv install ; pipenv run python setup.py sdist"
volumes:
pip-data:
FROM python:3.6.6
RUN pip install --upgrade pip && pip install pipenv
WORKDIR /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment