Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 .
|