# ------------------------------------------------------------------------------ # Base image # ------------------------------------------------------------------------------ FROM python:3.9.7-slim # ------------------------------------------------------------------------------ # Informations # ------------------------------------------------------------------------------ LABEL maintainer="hsj100 " LABEL title="A2TEC_METAVERSER_MEDICAL_REST" LABEL description="Rest API Server with Fast API" # ------------------------------------------------------------------------------ # Source # ------------------------------------------------------------------------------ COPY ./app /FAST_API/app # ------------------------------------------------------------------------------ # Install dependencies # ------------------------------------------------------------------------------ COPY ./requirements.txt /FAST_API/requirements.txt WORKDIR /FAST_API RUN apt update > /dev/null && \ apt install -y build-essential && \ pip install --no-cache-dir --upgrade -r /FAST_API/requirements.txt # ------------------------------------------------------------------------------ # Binary # ------------------------------------------------------------------------------ # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "50210"]