mirror of
https://github.com/Balshgit/different
synced 2026-02-04 09:50:39 +03:00
poetry lock file create in docker
This commit is contained in:
43
python-poetry/Dockerfile
Normal file
43
python-poetry/Dockerfile
Normal file
@@ -0,0 +1,43 @@
|
||||
FROM python:3.8.5
|
||||
|
||||
# python:
|
||||
ENV PYTHONFAULTHANDLER=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONHASHSEED=random \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
# pip:
|
||||
PIP_NO_CACHE_DIR=off \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=on \
|
||||
PIP_DEFAULT_TIMEOUT=100 \
|
||||
# poetry:
|
||||
POETRY_VERSION=1.1.4 \
|
||||
POETRY_NO_INTERACTION=1 \
|
||||
POETRY_VIRTUALENVS_CREATE=false \
|
||||
POETRY_CACHE_DIR='/var/cache/pypoetry' \
|
||||
PATH="$PATH:/root/.poetry/bin"
|
||||
|
||||
RUN apt update \
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
bash \
|
||||
build-essential \
|
||||
curl \
|
||||
gettext \
|
||||
git \
|
||||
libpq-dev \
|
||||
nano \
|
||||
&& export TERM=xterm \
|
||||
# Installing `poetry` package manager:
|
||||
# https://github.com/python-poetry/poetry
|
||||
&& curl -sSL 'https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py' | python \
|
||||
&& poetry --version
|
||||
|
||||
COPY ./pyproject.toml /code/
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
RUN poetry lock
|
||||
|
||||
WORKDIR /poetry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user