replaced the previous venv system by a conda one, allowing for better dependencies management

This commit is contained in:
faraphel 2025-01-18 14:44:46 +01:00
parent 8bf28e4c48
commit 0034c7b31a
17 changed files with 313 additions and 230 deletions

View file

@ -1,17 +1,17 @@
FROM python:3.12
FROM continuumio/miniconda3
# copy the application
WORKDIR /app
COPY ./ ./
# install the dependencies
RUN pip3 install -r ./requirements.txt
RUN conda env create -f environment.yml
# expose the API port
EXPOSE 8000
# environment variables
ENV MODEL_DIRECTORY=/models/
ENV MODEL_LIBRARY=/models/
# run the server
CMD ["python3", "-m", "source"]