Sign inSign up

airdock/python-poetry

By airdock

Updated almost 6 years ago

Image
1

2.3K

airdock/python-poetry repository overview

dockeri.co

Maintenance Ask Us Anything ! Open Source Love svg1

GitHub issues GitHub issues-closed Travis Ci Status MIT license

Poetry

GitHub release (latest SemVer)

docker-python-poetry

A docker container to run poetry

Prerequisites

Getting started

Just clone the repo with the usual : git clone https://github.com/airdock-io/docker-python-poetry.git

  • Enter the repo
  • Type make build to build the image locally
  • If you want to see other commands available make help

Be aware that, before it will execute your command it will execute a poetry install to make sure that a venv is created and that command will be executed properly. See https://python-poetry.org/ for more informations on configration

Then to use the image locally: docker run --rm -v ${PWD}:/app python-poetry:latest

Or to use the image from docker hub: docker run --rm -v ${PWD}:/app airdock/python-poetry:latest

Environment variables

Some of these vars are defined in the Dockerfile and others are not. Vars used by the entrypoint and command should be defined in dockerfile, vars relative to the command are defined (if not in compose environment section) in entrypoint with a default value.

VarDefault Value
HOME/usr/local/lib

Init scripts

Every scripts located (or mounted) in the /docker-entrypoint-init.d folder and ending with sh will be executed at startup before the command.

Tag summary

Content type

Image

Digest

Size

100 MB

Last updated

almost 6 years ago

docker pull airdock/python-poetry