diff --git a/Dockerfile b/Dockerfile index 662342b..4996db1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/bento-platform/bento_base_image:python-debian-2023.11.10 +FROM ghcr.io/bento-platform/bento_base_image:python-debian-2023.12.01 # Use uvicorn (instead of hypercorn) in production since I've found # multiple benchmarks showing it to be faster - David L @@ -13,7 +13,7 @@ COPY poetry.lock . # Without --no-root, we get errors related to the code not being copied in yet. # But we don't want the code here, otherwise Docker cache doesn't work well. RUN poetry config virtualenvs.create false && \ - poetry install --without dev --no-root + poetry --no-cache install --without dev --no-root # Manually copy only what's relevant # (Don't use .dockerignore, which allows us to have development containers too) diff --git a/dev.Dockerfile b/dev.Dockerfile index 061bf5f..11ee96c 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/bento-platform/bento_base_image:python-debian-2023.11.10 +FROM ghcr.io/bento-platform/bento_base_image:python-debian-2023.12.01 # FastAPI uses uvicorn for a development server as well RUN pip install --upgrade pip && pip install --no-cache-dir "uvicorn[standard]==0.24.0" @@ -13,7 +13,7 @@ COPY run.dev.bash . # Without --no-root, we get errors related to the code not being copied in yet. # But we don't want the code here, otherwise Docker cache doesn't work well. RUN poetry config virtualenvs.create false && \ - poetry install --no-root + poetry --no-cache install --no-root # Tell the service that we're running a local development container ENV BENTO_CONTAINER_LOCAL=true