FROM python:3.11-slim MAINTAINER youainti@youainti.com # setup users RUN useradd -G www-data monty # install packages RUN apt-get update && apt-get -y install libpq-dev gcc # Copy over files COPY --chown=1000:monty ./requirements.txt /home/monty/requirements.txt #TO BUILD A FINAL IMAGE, # - add these locations to the image # - make sure they can run using environment variables vs .env # - make a script to run each of them on a different port. #COPY --chown=1000:monty ./Icd10ConditionsMatching/ /home/monty/Icd10ConditionsMatching/ #COPY --chown=1000:monty ./FormulariesMatching/ /home/monty/FormulariesMatching/ # Change user and working directory USER monty WORKDIR /home/monty # install python packages RUN pip install -r requirements.txt # expose ports EXPOSE 5001 # command to run everything ENTRYPOINT bash