Denis Mbugua commited on
Commit
f253b8d
·
1 Parent(s): efb8ce4

update packages

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -20,6 +20,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
20
  apt-get install -y nodejs && \
21
  rm -rf /var/lib/apt/lists/*
22
 
 
 
 
23
  # Copy files
24
  COPY . .
25
 
@@ -27,11 +30,12 @@ COPY . .
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
  # Create necessary directories
30
- RUN mkdir -p memory
31
- RUN mkdir -p sandbox
32
-
33
 
 
34
  ENV PYTHONUNBUFFERED=1
 
 
35
  EXPOSE 7860
36
 
37
  CMD ["python", "app.py"]
 
20
  apt-get install -y nodejs && \
21
  rm -rf /var/lib/apt/lists/*
22
 
23
+ # Verify Node.js installation
24
+ RUN node --version && npm --version
25
+
26
  # Copy files
27
  COPY . .
28
 
 
30
  RUN pip install --no-cache-dir -r requirements.txt
31
 
32
  # Create necessary directories
33
+ RUN mkdir -p memory sandbox
 
 
34
 
35
+ # Set environment variables
36
  ENV PYTHONUNBUFFERED=1
37
+ ENV PATH="/root/.cargo/bin:$PATH"
38
+
39
  EXPOSE 7860
40
 
41
  CMD ["python", "app.py"]