diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9695701 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:latest +LABEL authors="fahad" + +RUN apt-get update -y && apt-get upgrade -y + +RUN apt-get install wget -y +RUN wget https://nodejs.org/dist/v18.18.0/node-v18.18.0-linux-x64.tar.xz + +RUN mkdir /usr/local/lib/nodejs + +RUN apt-get install xz-utils -y +RUN tar -xJvf node-v18.18.0-linux-x64.tar.xz -C /usr/local/lib/nodejs + +RUN mkdir /home/openhealth + +COPY openhealth/ /home/openhealth + +COPY start.sh / +RUN chmod +x start.sh + +CMD ./start.sh \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8581c1b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,33 @@ +absl-py==2.0.0 +attrs==23.1.0 +blinker==1.6.2 +cffi==1.15.1 +click==8.1.7 +contourpy==1.1.1 +cycler==0.11.0 +ffmpeg-python==0.2.0 +Flask==2.3.3 +Flask-Cors==4.0.0 +flatbuffers==23.5.26 +fonttools==4.42.1 +future==0.18.3 +gunicorn==21.2.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +kiwisolver==1.4.5 +MarkupSafe==2.1.3 +matplotlib==3.8.0 +mediapipe==0.10.5 +numpy==1.26.0 +opencv-contrib-python==4.8.0.76 +opencv-python==4.8.0.76 +packaging==23.1 +Pillow==10.0.1 +protobuf==3.20.3 +pycparser==2.21 +pyparsing==3.1.1 +python-dateutil==2.8.2 +scipy==1.11.2 +six==1.16.0 +sounddevice==0.4.6 +Werkzeug==2.3.7 \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..463d55c --- /dev/null +++ b/start.sh @@ -0,0 +1,9 @@ +export PATH=$PATH:/usr/local/lib/nodejs/node-v18.18.0-linux-x64/bin/ + +cd /home/openhealth + +export NEXT_PUBLIC_POD_IP=$POD_IP +echo $NEXT_PUBLIC_POD_IP +echo $POD_IP + +npm run start \ No newline at end of file