Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
•
8385aa9
1
Parent(s):
bd1c43c
fixed dockerfile
Browse files- build-run.sh +1 -1
- dockerfile +5 -2
- server.py +1 -1
build-run.sh
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
#!/bin/bash
|
2 |
-
gunicorn --workers=2 --log-level
|
|
|
1 |
#!/bin/bash
|
2 |
+
gunicorn --workers=2 --log-level debug server:app --bind=0.0.0.0:$FLASK_PORT
|
dockerfile
CHANGED
@@ -24,7 +24,6 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesourc
|
|
24 |
RUN apt-get update && apt-get install nodejs -y
|
25 |
|
26 |
COPY ./requirements.txt /code/requirements.txt
|
27 |
-
COPY app/*.py /code/app
|
28 |
|
29 |
# Set up a new user named "user" with user ID 1000
|
30 |
RUN useradd -m -u 1000 user
|
@@ -47,7 +46,11 @@ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
47 |
WORKDIR $HOME/app
|
48 |
|
49 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
50 |
-
COPY --chown=user
|
|
|
|
|
|
|
|
|
51 |
|
52 |
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
|
53 |
CMD ["./build-run.sh"]
|
|
|
24 |
RUN apt-get update && apt-get install nodejs -y
|
25 |
|
26 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
27 |
|
28 |
# Set up a new user named "user" with user ID 1000
|
29 |
RUN useradd -m -u 1000 user
|
|
|
46 |
WORKDIR $HOME/app
|
47 |
|
48 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
49 |
+
COPY --chown=user app/ $HOME/app/app/
|
50 |
+
COPY --chown=user server.py $HOME/app/server.py
|
51 |
+
COPY --chown=user build-run.sh $HOME/app/build-run.sh
|
52 |
+
RUN chown -R user:user $HOME/app
|
53 |
+
#COPY --chown=user . $HOME/app
|
54 |
|
55 |
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
|
56 |
CMD ["./build-run.sh"]
|
server.py
CHANGED
@@ -58,7 +58,7 @@ def _start_bot(bot_path, args=None):
|
|
58 |
|
59 |
proc = subprocess.Popen(
|
60 |
[
|
61 |
-
f"
|
62 |
],
|
63 |
shell=True,
|
64 |
bufsize=1,
|
|
|
58 |
|
59 |
proc = subprocess.Popen(
|
60 |
[
|
61 |
+
f"python3 {bot_path} -u {room_url} -t {meeting_token} {extra_args}"
|
62 |
],
|
63 |
shell=True,
|
64 |
bufsize=1,
|