Mbonea commited on
Commit
040bd2a
1 Parent(s): 0db0ed7

updated dockerfile and tested

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -7
Dockerfile CHANGED
@@ -11,9 +11,30 @@ 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 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
@@ -27,12 +48,10 @@ COPY --chown=admin . /srv
27
  COPY requirements.txt .
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
- # Install JavaScript dependencies (if you have a package.json file)
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
 
11
  RUN apt-get update && \
12
  apt-get install -y libu2f-udev libvulkan1 mesa-vulkan-drivers wget
13
 
14
+ RUN apt-get install -y \
15
+ fonts-liberation \
16
+ libatk-bridge2.0-0 \
17
+ libatk1.0-0 \
18
+ libatspi2.0-0 \
19
+ libcups2 \
20
+ libdrm2 \
21
+ libgbm1 \
22
+ libgtk-3-0 \
23
+ libnspr4 \
24
+ libnss3 \
25
+ libu2f-udev \
26
+ libvulkan1 \
27
+ libxcomposite1 \
28
+ libxdamage1 \
29
+ libxfixes3 \
30
+ libasound2 \
31
+ libxkbcommon0 \
32
+ libxrandr2 \
33
+ xdg-utils
34
+
35
+ # Download and install Thorium Browser
36
+ RUN wget https://github.com/Alex313031/thorium/releases/download/M117.0.5938.157/thorium-browser_117.0.5938.157_amd64.deb && \
37
+ dpkg -i thorium-browser_117.0.5938.157_amd64.deb
38
 
39
  # Install Node.js and npm
40
  RUN apt-get install -y nodejs npm
 
48
  COPY requirements.txt .
49
  RUN pip install --no-cache-dir -r requirements.txt
50
 
51
+
 
 
52
 
53
  # Remove Thorium Browser .deb package
54
  RUN rm thorium-browser_117.0.5938.157_amd64.deb
55
 
56
  # Command to run the application
57
+ CMD python -m http.server 8080