base for the application : support custom python application and auto-install dependencies

This commit is contained in:
faraphel 2025-01-08 19:00:47 +01:00
parent a20371e1ab
commit e2ebbf8a82
25 changed files with 494 additions and 2 deletions

17
Dockerfile Normal file
View file

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