Skip to content

Commit e9004e9

Browse files
committed
Update Dockerfile
* Update poetry URL * Use a virtual environment to install dependencies, fix nornir-automation#464 * Use slim-buster instead of slim-stretch
1 parent fda8644 commit e9004e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
ARG PYTHON
2-
FROM python:${PYTHON}-slim-stretch
2+
FROM python:${PYTHON}-slim-buster
33

44
WORKDIR /nornir
5-
ENV PATH="/root/.poetry/bin:$PATH" \
5+
ENV PATH="/nornir/.venv/bin:/root/.poetry/bin:$PATH" \
66
PYTHONDONTWRITEBYTECODE=1 \
77
PYTHONUNBUFFERED=1 \
88
NORNIR_TESTS=1
99

1010
RUN apt-get update \
1111
&& apt-get install -yq curl git pandoc \
12-
&& curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python \
13-
&& poetry config virtualenvs.create false
12+
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python \
13+
&& poetry config virtualenvs.in-project true
1414

1515
COPY pyproject.toml .
1616
COPY poetry.lock .

0 commit comments

Comments
 (0)