diff --git a/containerfile b/containerfile new file mode 100644 index 0000000..d35530d --- /dev/null +++ b/containerfile @@ -0,0 +1,32 @@ +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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f979dd8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +flask == 2.3 +python-dotenv == 1.0 +watchdog == 3.0 +datetime +psycopg2-binary == 2.9 +waitress == 2.1 diff --git a/sample.env b/sample.env new file mode 100644 index 0000000..6e2f542 --- /dev/null +++ b/sample.env @@ -0,0 +1,10 @@ + +#Postgres Info +POSTGRES_HOST= +POSTGRES_DB=aact_db +POSTGRES_PORT=5432 +POSTGRES_USER=root +POSTGRES_PASS=root + +#Other Secrets +