thesis / Dockerfile
LennardZuendorf's picture
feat: implementing latest version and basic interpretability methods
f8c9e3f unverified
raw
history blame
717 Bytes
# standard Dockerfile to build a complete, working image of the webapp
# complete build based on clean python (slower)
#FROM python:3.11.6
# build based on python with dependencies (quicker) - for dev
FROM thesis:0.2.0-base
# install dependencies and copy files into image folder
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install fastapi uvicorn
COPY . .
# display files in image folder (for debugging)
RUN ls --recursive .
# setting config and run command
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
# build and run commands:
## docker build -t thesis:0.2.0-full -f Dockerfile .
## docker run -d --name thesis -p 8080:8080 thesis:0.2.0