Parcourir la source

Update poetry in docker file

Sean il y a 3 ans
Parent
commit
78d8cc1ec4
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      Dockerfile

+ 3 - 3
Dockerfile

@@ -18,13 +18,13 @@ RUN chmod +x geckodriver
 RUN cp geckodriver /usr/local/bin/
 
 # Install poetry
-RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
-ENV PATH="${PATH}:/root/.poetry/bin"
+RUN curl -sSL https://install.python-poetry.org | python3 -
+ENV PATH="/root/.local/bin:$PATH"
 
 # Install the env
 COPY poetry.lock .
 COPY pyproject.toml .
-RUN poetry install --no-interaction --no-ansi --no-dev
+RUN poetry install --no-interaction --no-ansi --without dev
 
 # Copy the files
 COPY ocma /ocma