Unfaithful commited on
Commit
03c82e8
·
verified ·
1 Parent(s): 7fb2a12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,16 +1,21 @@
1
  FROM python:3.9-slim
2
 
3
- # Install Node.js
4
- RUN apt-get update && apt-get install -y curl && \
 
 
 
5
  curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
6
- apt-get install -y nodejs && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
14
  COPY app.py .
15
 
16
  EXPOSE 7860
 
1
  FROM python:3.9-slim
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # Install Node.js and necessary tools
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends curl && \
8
  curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
9
+ apt-get install -y --no-install-recommends nodejs && \
10
  rm -rf /var/lib/apt/lists/*
11
 
12
  WORKDIR /app
13
 
14
+ # Install Python dependencies
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy the Gradio/Node orchestrating script
19
  COPY app.py .
20
 
21
  EXPOSE 7860