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"]
|