diff --git a/Dockerfile b/Dockerfile index 6c8b018..ed81944 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.11-bullseye WORKDIR /app @@ -9,7 +9,7 @@ ENV PYTHONPATH=/app COPY ./requirements.txt . -RUN pip3 install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt COPY . ./ diff --git a/requirements.txt b/requirements.txt index 1291083..adf3c05 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ cryptography pyyaml pydantic python-magic -nachet-datastore @git+https://github.com/ai-cfia/ailab-datastore.git@main +nachet-datastore @git+https://github.com/ai-cfia/ailab-datastore.git@v1.0.0-nachet-datastore diff --git a/storage/datastore_storage_api.py b/storage/datastore_storage_api.py index ddfdfb2..b609309 100644 --- a/storage/datastore_storage_api.py +++ b/storage/datastore_storage_api.py @@ -5,11 +5,11 @@ import datastore from datastore import db from datastore import user as user_datastore -from datastore import nachet as nachet_datastore -import datastore.bin.deployment_mass_import +import nachet as nachet_datastore +import nachet.bin.deployment_mass_import import datastore.bin.upload_picture_set -import datastore.db.queries.seed as seed_queries +import nachet.db.queries.seed as seed_queries class DatastoreError(Exception): pass