Stylique commited on
Commit
56463a2
·
verified ·
1 Parent(s): 47e0e60

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -14
Dockerfile CHANGED
@@ -2,20 +2,9 @@ FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- # 1. Install wget and curl first, then Node.js
6
- RUN apt-get update && apt-get install -y wget curl \
7
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
8
- && apt-get install -y nodejs \
9
- && apt-get clean
10
-
11
- # 2. Install Chrome (using wget which is now installed)
12
- RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
13
- && apt-get update && apt-get install -y ./google-chrome-stable_current_amd64.deb \
14
- && rm google-chrome-stable_current_amd64.deb \
15
- && apt-get clean
16
-
17
- # 3. Install FFmpeg and Chrome dependencies
18
  RUN apt-get update && apt-get install -y \
 
19
  ffmpeg \
20
  libnss3 \
21
  libatk1.0-0 \
@@ -28,7 +17,15 @@ RUN apt-get update && apt-get install -y \
28
  libxrandr2 \
29
  libgbm1 \
30
  libasound2 \
31
- && apt-get clean
 
 
 
 
 
 
 
 
32
 
33
  WORKDIR /app
34
  COPY package*.json ./
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # Install everything in one layer
 
 
 
 
 
 
 
 
 
 
 
 
6
  RUN apt-get update && apt-get install -y \
7
+ curl ca-certificates gnupg wget \
8
  ffmpeg \
9
  libnss3 \
10
  libatk1.0-0 \
 
17
  libxrandr2 \
18
  libgbm1 \
19
  libasound2 \
20
+ # NVIDIA GPU tools
21
+ pciutils \
22
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
23
+ && apt-get install -y nodejs \
24
+ && wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
25
+ && apt-get install -y ./google-chrome-stable_current_amd64.deb \
26
+ && rm google-chrome-stable_current_amd64.deb \
27
+ && apt-get clean \
28
+ && rm -rf /var/lib/apt/lists/*
29
 
30
  WORKDIR /app
31
  COPY package*.json ./