Spaces:
Running
Running
Commit
·
715b1f0
1
Parent(s):
d4b5c99
back to minimal install
Browse files- Dockerfile +8 -9
- omnitool +0 -1
- omnitool_start.sh +7 -0
- prepare.sh +0 -5
Dockerfile
CHANGED
@@ -4,17 +4,16 @@ USER node
|
|
4 |
WORKDIR /app
|
5 |
|
6 |
RUN chmod 777 /app
|
7 |
-
RUN chmod 777 /app/omnitool
|
8 |
-
|
9 |
-
RUN
|
10 |
-
RUN
|
11 |
-
RUN
|
12 |
-
RUN
|
13 |
-
RUN
|
14 |
-
RUN chmod 777 /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
|
15 |
|
16 |
RUN chown -Rh $user:$user /app
|
17 |
-
RUN chown -Rh $user:$user /app/omnitool
|
18 |
|
19 |
COPY --chown=node . /app
|
20 |
|
|
|
4 |
WORKDIR /app
|
5 |
|
6 |
RUN chmod 777 /app
|
7 |
+
#RUN chmod 777 /app/omnitool
|
8 |
+
#RUN mkdir -p /app/omnitool/node_modules
|
9 |
+
#RUN chmod 777 /app/omnitool/node_modules
|
10 |
+
#RUN mkdir -p /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/
|
11 |
+
#RUN chmod 777 /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/
|
12 |
+
#RUN curl -L https://github.com/omnitool-ai/omnitool/raw/main/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1 -o /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
|
13 |
+
#RUN chmod 777 /app/omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
|
|
|
14 |
|
15 |
RUN chown -Rh $user:$user /app
|
16 |
+
#RUN chown -Rh $user:$user /app/omnitool
|
17 |
|
18 |
COPY --chown=node . /app
|
19 |
|
omnitool
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
Subproject commit 8cc31bba952351a937b58b010635022f01ccff06
|
|
|
|
omnitool_start.sh
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
#!/bin/bash
|
2 |
echo "--- START ---"
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
if [ -d "/data" ] && [ ! -L "/app/omnitool/packages/omni-server/data.local" ]; then
|
5 |
# Backup the existing data.local directory
|
6 |
echo "--- Backup the existing data.local directory ---"
|
|
|
1 |
#!/bin/bash
|
2 |
echo "--- START ---"
|
3 |
|
4 |
+
echo "--- GIT OMNITOOL ---"
|
5 |
+
git clone https://github.com/omnitool-ai/omnitool
|
6 |
+
mkdir -p ./omnitool/node_modules
|
7 |
+
chmod 777 ./omnitool/node_modules
|
8 |
+
chown -Rh $user:$user ./omnitool
|
9 |
+
|
10 |
+
echo "--- CHECKING /DATA ---"
|
11 |
if [ -d "/data" ] && [ ! -L "/app/omnitool/packages/omni-server/data.local" ]; then
|
12 |
# Backup the existing data.local directory
|
13 |
echo "--- Backup the existing data.local directory ---"
|
prepare.sh
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
#echo "--- GIT OMNITOOL ---"
|
2 |
-
#git clone https://github.com/omnitool-ai/omnitool
|
3 |
-
echo "--- REMOVING latge file from OMNITOOL distribution ---"
|
4 |
-
rm ./omnitool/assets/*
|
5 |
-
rm ./omnitool/packages/omni-server/config.default/models/nsfwjs/mobilenet-v2-quant/group1-shard1of1
|
|
|
|
|
|
|
|
|
|
|
|