Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# Dockerfile for Hugging Face Spaces
|
| 2 |
FROM python:3.11-slim
|
|
|
|
| 3 |
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
|
@@ -13,6 +14,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 13 |
nodejs \
|
| 14 |
npm \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
| 16 |
RUN echo "nameserver 8.8.8.8" > /tmp/resolv.conf
|
| 17 |
|
| 18 |
RUN echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
|
|
|
|
| 1 |
# Dockerfile for Hugging Face Spaces
|
| 2 |
FROM python:3.11-slim
|
| 3 |
+
USER root
|
| 4 |
|
| 5 |
# Set working directory
|
| 6 |
WORKDIR /app
|
|
|
|
| 14 |
nodejs \
|
| 15 |
npm \
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
+
|
| 18 |
+
RUN echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 19 |
+
|
| 20 |
RUN echo "nameserver 8.8.8.8" > /tmp/resolv.conf
|
| 21 |
|
| 22 |
RUN echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
|