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