Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
•
71f583a
1
Parent(s):
4687ea3
remove fe build step for debug
Browse files- Dockerfile +2 -2
- server.py +1 -1
Dockerfile
CHANGED
@@ -43,7 +43,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
44 |
|
45 |
# Set the working directory to the user's home directory
|
46 |
-
|
47 |
|
48 |
# Copy package.json and package-lock.json
|
49 |
COPY --chown=user frontend/package*.json frontend/
|
@@ -51,7 +51,7 @@ RUN cd frontend && npm install
|
|
51 |
|
52 |
# Copy frontend app and build
|
53 |
COPY --chown=user frontend/ frontend/
|
54 |
-
RUN cd frontend && npm run build
|
55 |
|
56 |
# Copy everything else
|
57 |
COPY --chown=user app/ app/
|
|
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
44 |
|
45 |
# Set the working directory to the user's home directory
|
46 |
+
WORKDIR $HOME/app
|
47 |
|
48 |
# Copy package.json and package-lock.json
|
49 |
COPY --chown=user frontend/package*.json frontend/
|
|
|
51 |
|
52 |
# Copy frontend app and build
|
53 |
COPY --chown=user frontend/ frontend/
|
54 |
+
#RUN cd frontend && npm run build
|
55 |
|
56 |
# Copy everything else
|
57 |
COPY --chown=user app/ app/
|
server.py
CHANGED
@@ -101,7 +101,7 @@ def _start_bot(bot_path, room_url, args=None):
|
|
101 |
@app.post("/start")
|
102 |
async def start(request: Request):
|
103 |
data = await request.json()
|
104 |
-
return _start_bot("./app/bot.py",data['room_url'])
|
105 |
|
106 |
@app.post("/create")
|
107 |
async def create():
|
|
|
101 |
@app.post("/start")
|
102 |
async def start(request: Request):
|
103 |
data = await request.json()
|
104 |
+
return _start_bot("./app/bot.py", data['room_url'])
|
105 |
|
106 |
@app.post("/create")
|
107 |
async def create():
|