Skip to content

Commit

Permalink
Merge pull request #72 from zooniverse/poetry-fix
Browse files Browse the repository at this point in the history
fix poetry.dev-dependencies failing on staging build
  • Loading branch information
Tooyosi authored Jan 7, 2025
2 parents 5fe2e00 + 2f9caef commit 3189529
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ RUN pip install poetry
COPY pyproject.toml ./
COPY poetry.lock ./

COPY . .

# Allow installing dev dependencies to run tests
ARG INSTALL_DEV=false

RUN if [ "${INSTALL_DEV}" = 'true' ]; then poetry install; else poetry install --no-dev; fi

COPY . .

# start the api
CMD ["poetry", "run", "start"]
Loading

0 comments on commit 3189529

Please sign in to comment.