lucas-wa
commited on
Commit
•
06b7eea
1
Parent(s):
a1afdd6
Fixing permission deined
Browse files- Dockerfile +0 -1
- entrypoint.sh +4 -2
Dockerfile
CHANGED
@@ -22,7 +22,6 @@ RUN cd web && npm install
|
|
22 |
|
23 |
RUN cd web && npm run build
|
24 |
|
25 |
-
|
26 |
COPY entrypoint.sh /code/entrypoint.sh
|
27 |
|
28 |
RUN chmod +x /code/entrypoint.sh
|
|
|
22 |
|
23 |
RUN cd web && npm run build
|
24 |
|
|
|
25 |
COPY entrypoint.sh /code/entrypoint.sh
|
26 |
|
27 |
RUN chmod +x /code/entrypoint.sh
|
entrypoint.sh
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Verifique o token
|
4 |
-
python3 /code/server/check_token.py $HF_TOKEN
|
5 |
# python3 /code/server/ngrok_config.py $NGROK_TOKEN
|
6 |
|
|
|
|
|
7 |
|
8 |
# Verifique o status de saída
|
9 |
if [ $? -eq 0 ]; then
|
@@ -14,4 +16,4 @@ else
|
|
14 |
fi
|
15 |
|
16 |
# Inicie o seu aplicativo
|
17 |
-
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Verifique o token
|
4 |
+
# python3 /code/server/check_token.py $HF_TOKEN
|
5 |
# python3 /code/server/ngrok_config.py $NGROK_TOKEN
|
6 |
|
7 |
+
huggingface-cli login --token $HF_KEY
|
8 |
+
|
9 |
|
10 |
# Verifique o status de saída
|
11 |
if [ $? -eq 0 ]; then
|
|
|
16 |
fi
|
17 |
|
18 |
# Inicie o seu aplicativo
|
19 |
+
exec "$@"
|