update auth
Browse files- Dockerfile +1 -1
- app/start.sh +2 -1
- htpasswd +1 -1
Dockerfile
CHANGED
@@ -28,6 +28,6 @@ COPY --chown=user:user ./requirements.txt /home/user/requirements.txt
|
|
28 |
RUN pip install --no-cache-dir --upgrade -r /home/user/requirements.txt
|
29 |
COPY --chown=user:user ./app /home/user/app
|
30 |
COPY ./default /etc/nginx/sites-available
|
31 |
-
COPY ./htpasswd /etc/nginx
|
32 |
EXPOSE 7860
|
33 |
CMD ["/bin/sh", "/home/user/app/start.sh"]
|
|
|
28 |
RUN pip install --no-cache-dir --upgrade -r /home/user/requirements.txt
|
29 |
COPY --chown=user:user ./app /home/user/app
|
30 |
COPY ./default /etc/nginx/sites-available
|
31 |
+
COPY --chown=user:user ./htpasswd /etc/nginx
|
32 |
EXPOSE 7860
|
33 |
CMD ["/bin/sh", "/home/user/app/start.sh"]
|
app/start.sh
CHANGED
@@ -2,10 +2,11 @@
|
|
2 |
set -e
|
3 |
|
4 |
cd /home/user/app
|
5 |
-
echo "Console Auth <$CONSOLE_AUTH>"
|
6 |
|
7 |
/usr/local/bin/ttyd -p 7681 /bin/bash&
|
8 |
|
|
|
|
|
9 |
nginx
|
10 |
|
11 |
python whisper.py&
|
|
|
2 |
set -e
|
3 |
|
4 |
cd /home/user/app
|
|
|
5 |
|
6 |
/usr/local/bin/ttyd -p 7681 /bin/bash&
|
7 |
|
8 |
+
echo "Console Auth <$CONSOLE_AUTH>"
|
9 |
+
echo "$CONSOLE_AUTH" > /etc/nginx/htpasswd
|
10 |
nginx
|
11 |
|
12 |
python whisper.py&
|
htpasswd
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
|
|
1 |
+
# Will be generated
|