Skip to content

Commit

Permalink
docs: improve documentation on Dockerfile and docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 7, 2023
1 parent b137866 commit ab4c4ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ CMD [ "gunicorn", "--config /opt/robotoff/gunicorn.py", "--log-file=-", "robotof
FROM builder-base as builder-dev
WORKDIR $PYSETUP_PATH
COPY poetry.lock pyproject.toml poetry.toml ./
# full install
# full install, with dev packages
RUN poetry install

# image with dev tooling
# ----------------------
# This image will be used by default, unless a target is specified in docker-compose.yml
FROM runtime as runtime-dev
COPY --from=builder-dev $VENV_PATH $VENV_PATH
COPY --from=builder-dev $POETRY_HOME $POETRY_HOME
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ x-robotoff-base-volumes:
x-robotoff-base:
&robotoff-base
restart: $RESTART_POLICY
# this image is built with target=runtime, so it won't have the dev dependencies
image: ghcr.io/openfoodfacts/robotoff:${TAG}
volumes: *robotoff-base-volumes

Expand Down

0 comments on commit ab4c4ac

Please sign in to comment.