Spaces:
Sleeping
Sleeping
Add application files.
Browse files- Dockerfile +12 -0
- run.sh +2 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
|
3 |
+
WORKDIR /api
|
4 |
+
RUN git clone --branch dev https://github.com/Imageomics/dashboard-prototype.git
|
5 |
+
WORKDIR /api/dashboard-prototype
|
6 |
+
|
7 |
+
RUN pip3 install gunicorn && \
|
8 |
+
pip3 install -r requirements.txt
|
9 |
+
|
10 |
+
COPY run.sh /api/dashboard-prototype/run.sh
|
11 |
+
|
12 |
+
CMD /api/dashboard-prototype/run.sh
|
run.sh
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
gunicorn -w ${BACKEND_WORKERS:=4} -b :5000 -t 360 dashboard:server
|