RathodHarish commited on
Commit
f13a5e5
·
verified ·
1 Parent(s): fc09145

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +7 -1
dockerfile CHANGED
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
11
  cmake \
12
  rsync \
13
  libgl1-mesa-glx \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Set working directory
@@ -19,7 +20,12 @@ WORKDIR /home/user/app
19
  # Create and set user
20
  RUN useradd -m -u 1000 user && chown 1000:1000 /home/user/app
21
 
22
- # Copy requirements.txt and install Python dependencies
 
 
 
 
 
23
  COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt
24
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
25
 
 
11
  cmake \
12
  rsync \
13
  libgl1-mesa-glx \
14
+ curl \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  # Set working directory
 
20
  # Create and set user
21
  RUN useradd -m -u 1000 user && chown 1000:1000 /home/user/app
22
 
23
+ # Install Node.js (optional, remove if not needed)
24
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
25
+ apt-get install -y nodejs && \
26
+ rm -rf /var/lib/apt/lists/*
27
+
28
+ # Install Python dependencies
29
  COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt
30
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
31