all repos — janny @ master

clean up Kubernetes resources after a set TTL

Dockerfile (view raw)

 1FROM python
 2
 3ENV PYTHONUNBUFFERED=1 \
 4    PYTHONDONTWRITEBYTECODE=1 \
 5    PIP_NO_CACHE_DIR=off \
 6    PIP_DISABLE_PIP_VERSION_CHECK=on \
 7    PIP_DEFAULT_TIMEOUT=100 \
 8    POETRY_HOME="/opt/poetry" \
 9    POETRY_VIRTUALENVS_IN_PROJECT=true \
10    POETRY_VIRTUALENVS_CREATE=false \
11    POETRY_NO_INTERACTION=1 
12
13ENV JANNY_API_HOST="https://kubernetes.default"
14
15RUN pip install poetry
16
17COPY poetry.lock pyproject.toml /janny/
18WORKDIR /janny
19RUN poetry install --no-dev
20COPY . ./
21ENTRYPOINT ["python3", "-m","janny"]