anthony01 commited on
Commit
fb4db77
·
1 Parent(s): b98282a

update: Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -3,9 +3,18 @@ FROM python:3.9
3
  # Create a non-root user with ID 1000 (Required by Hugging Face)
4
  RUN useradd -m -u 1000 user
5
 
6
- # Install Node.js (needed to build your React UI)
7
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
8
- apt-get install -y nodejs
 
 
 
 
 
 
 
 
 
9
 
10
  # Set the working directory
11
  WORKDIR /app
 
3
  # Create a non-root user with ID 1000 (Required by Hugging Face)
4
  RUN useradd -m -u 1000 user
5
 
6
+ # Install Node.js (for UI build) and OpenCV runtime system libs.
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends curl ca-certificates gnupg && \
9
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
10
+ apt-get install -y --no-install-recommends \
11
+ nodejs \
12
+ ffmpeg \
13
+ libgl1 \
14
+ libglib2.0-0 \
15
+ libsm6 \
16
+ libxext6 && \
17
+ rm -rf /var/lib/apt/lists/*
18
 
19
  # Set the working directory
20
  WORKDIR /app