mirror of
https://git.isriupjv.fr/ISRI/ai-server
synced 2025-04-24 01:58:12 +02:00
17 lines
281 B
Docker
17 lines
281 B
Docker
FROM continuumio/miniconda3
|
|
|
|
# copy the application
|
|
WORKDIR /app
|
|
COPY ./ ./
|
|
|
|
# install the dependencies
|
|
RUN conda env create -f environment.yml
|
|
|
|
# expose the API port
|
|
EXPOSE 8000
|
|
|
|
# environment variables
|
|
ENV MODEL_LIBRARY=/models/
|
|
|
|
# run the server
|
|
CMD ["python3", "-m", "source"]
|