Beginning work on container to run flask apps for matching datasets

main
Will King 3 years ago
parent 06a5145612
commit 57529ee595

@ -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

@ -0,0 +1,6 @@
flask == 2.3
python-dotenv == 1.0
watchdog == 3.0
datetime
psycopg2-binary == 2.9
waitress == 2.1

@ -0,0 +1,10 @@
#Postgres Info
POSTGRES_HOST=
POSTGRES_DB=aact_db
POSTGRES_PORT=5432
POSTGRES_USER=root
POSTGRES_PASS=root
#Other Secrets
Loading…
Cancel
Save