Tamannathakur commited on
Commit
63386b0
·
verified ·
1 Parent(s): d8fa7b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -4,8 +4,14 @@ FROM python:3.11-slim
4
  # Set the working directory to /app
5
  WORKDIR /app
6
 
7
- # Install Node.js (required for npx and DBHub)
8
- RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
9
 
10
  # Copy the requirements file and install dependencies
11
  COPY requirements.txt .
 
4
  # Set the working directory to /app
5
  WORKDIR /app
6
 
7
+ # Prevent interactive prompts during apt-get
8
+ ENV DEBIAN_FRONTEND=noninteractive
9
+
10
+ # Install curl, then use it to install the official Node.js 20.x, avoiding timezone hangs
11
+ RUN apt-get update && apt-get install -y curl && \
12
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
13
+ apt-get install -y nodejs && \
14
+ rm -rf /var/lib/apt/lists/*
15
 
16
  # Copy the requirements file and install dependencies
17
  COPY requirements.txt .