fixed assets directory removed thorium installation
Browse files- App/Worker.py +1 -1
- Dockerfile +1 -4
App/Worker.py
CHANGED
@@ -101,7 +101,7 @@ def celery_task(video_task: EditorRequest):
|
|
101 |
project_id = str(uuid.uuid4())
|
102 |
temp_dir = f"/tmp/{project_id}"
|
103 |
output_dir = f"/tmp/{project_id}/out/video.mp4"
|
104 |
-
assets_dir = os.path.join(temp_dir, "src/Assets")
|
105 |
|
106 |
chain(
|
107 |
copy_remotion_app.si(remotion_app_dir, temp_dir),
|
|
|
101 |
project_id = str(uuid.uuid4())
|
102 |
temp_dir = f"/tmp/{project_id}"
|
103 |
output_dir = f"/tmp/{project_id}/out/video.mp4"
|
104 |
+
assets_dir = os.path.join(temp_dir, "src/HelloWorld/Assets")
|
105 |
|
106 |
chain(
|
107 |
copy_remotion_app.si(remotion_app_dir, temp_dir),
|
Dockerfile
CHANGED
@@ -36,8 +36,6 @@ RUN apt-get install -y \
|
|
36 |
COPY --chown=admin . /srv
|
37 |
|
38 |
# Download and install Thorium Browser
|
39 |
-
RUN wget https://github.com/Alex313031/thorium/releases/download/M117.0.5938.157/thorium-browser_117.0.5938.157_amd64.deb && \
|
40 |
-
dpkg -i thorium-browser_117.0.5938.157_amd64.deb
|
41 |
|
42 |
RUN apt-get update && apt-get install -y \
|
43 |
software-properties-common \
|
@@ -64,8 +62,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
64 |
|
65 |
|
66 |
|
67 |
-
|
68 |
-
RUN rm thorium-browser_117.0.5938.157_amd64.deb
|
69 |
|
70 |
# Command to run the application
|
71 |
CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 4 --loglevel=info
|
|
|
36 |
COPY --chown=admin . /srv
|
37 |
|
38 |
# Download and install Thorium Browser
|
|
|
|
|
39 |
|
40 |
RUN apt-get update && apt-get install -y \
|
41 |
software-properties-common \
|
|
|
62 |
|
63 |
|
64 |
|
65 |
+
|
|
|
66 |
|
67 |
# Command to run the application
|
68 |
CMD python -m uvicorn App.app:app --host 0.0.0.0 --port 7860 & python -m celery -A App.Worker.celery worker -c 4 --loglevel=info
|