Spaces:
Runtime error
Runtime error
carolanderson
commited on
Commit
•
a2e5843
1
Parent(s):
4c1a0d5
add Dockerfile and bash script
Browse files- Dockerfile +39 -0
- run_app.sh +9 -0
Dockerfile
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:19
|
2 |
+
|
3 |
+
WORKDIR workdir/
|
4 |
+
|
5 |
+
COPY indie_label_svelte ./indie_label_svelte/
|
6 |
+
COPY *.py .
|
7 |
+
COPY requirements.txt .
|
8 |
+
COPY *.sh .
|
9 |
+
|
10 |
+
RUN apt-get update \
|
11 |
+
&& apt install -y python3-pip \
|
12 |
+
&& pip3 install -r requirements.txt
|
13 |
+
|
14 |
+
RUN npm install --global rollup \
|
15 |
+
&& npm install --save-dev svelte rollup-plugin-svelte --legacy-peer-deps
|
16 |
+
|
17 |
+
ENV HOST=0.0.0.0
|
18 |
+
EXPOSE 5001
|
19 |
+
|
20 |
+
ENTRYPOINT gdown 1In9qAzV5t--rMmEH2R5miWpZ4IQStgFu \
|
21 |
+
&& unzip data.zip \
|
22 |
+
&& rm data.zip \
|
23 |
+
&& bash run_app.sh & sleep infinity;
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
|
run_app.sh
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
python3 server.py > pylog.txt 2>&1 &
|
4 |
+
cd indie_label_svelte
|
5 |
+
host=0.0.0.0 port=5000 npm run dev 2>&1 &
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|