thorium
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -11,9 +11,9 @@ RUN chmod -R 755 /srv
|
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y libu2f-udev libvulkan1 mesa-vulkan-drivers wget
|
13 |
|
14 |
-
# Install Thorium Browser
|
15 |
-
RUN
|
16 |
-
|
17 |
|
18 |
# Install Node.js and npm
|
19 |
RUN apt-get install -y nodejs npm
|
@@ -31,5 +31,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
31 |
COPY package*.json ./
|
32 |
RUN npm install
|
33 |
|
|
|
|
|
|
|
34 |
# Command to run the application
|
35 |
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 4 & celery -A App.Worker.celery worker -c 4 --loglevel=DEBUG
|
|
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y libu2f-udev libvulkan1 mesa-vulkan-drivers wget
|
13 |
|
14 |
+
# Install Thorium Browser using Snap
|
15 |
+
RUN apt-get install -y snapd && \
|
16 |
+
snap install thorium
|
17 |
|
18 |
# Install Node.js and npm
|
19 |
RUN apt-get install -y nodejs npm
|
|
|
31 |
COPY package*.json ./
|
32 |
RUN npm install
|
33 |
|
34 |
+
# Remove Thorium Browser .deb package
|
35 |
+
RUN rm thorium-browser_117.0.5938.157_amd64.deb
|
36 |
+
|
37 |
# Command to run the application
|
38 |
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 4 & celery -A App.Worker.celery worker -c 4 --loglevel=DEBUG
|