replaced the previous venv system by a conda one, allowing for better dependencies management
This commit is contained in:
parent
8bf28e4c48
commit
0034c7b31a
17 changed files with 313 additions and 230 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue