diff --git a/Dockerfile b/Dockerfile index 5b8f350..6060149 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ COPY pyproject.toml poetry.lock /usr/src/app/ # Install the dependencies and clear the cache afterwards. # This may save some MBs. -RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR +RUN poetry install --no-root --only main && rm -rf $POETRY_CACHE_DIR # Now let's build the runtime image from the builder. # We'll just copy the env and the PATH reference.