base for the application : support custom python application and auto-install dependencies
This commit is contained in:
parent
a20371e1ab
commit
e2ebbf8a82
25 changed files with 494 additions and 2 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue