Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
|
@@ -15,15 +15,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
npm \
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
-
RUN echo "
|
| 19 |
|
| 20 |
-
RUN echo "nameserver 8.8.8.8" > /tmp/resolv.conf
|
| 21 |
-
|
| 22 |
-
RUN echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
|
| 23 |
-
|
| 24 |
-
RUN sudo sh -c 'echo -e "nameserver 1.1.1.1\nnameserver 8.8.8.8" > /etc/resolv.conf'
|
| 25 |
-
|
| 26 |
-
RUN cat /etc/resolv.conf
|
| 27 |
|
| 28 |
# Install yt-dlp
|
| 29 |
RUN pip install yt-dlp
|
|
@@ -36,6 +29,7 @@ RUN npm install
|
|
| 36 |
|
| 37 |
# Copy application files
|
| 38 |
COPY . .
|
|
|
|
| 39 |
|
| 40 |
# Create downloads directory with proper permissions
|
| 41 |
RUN mkdir -p downloads && chmod 777 downloads
|
|
|
|
| 15 |
npm \
|
| 16 |
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
+
RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Install yt-dlp
|
| 22 |
RUN pip install yt-dlp
|
|
|
|
| 29 |
|
| 30 |
# Copy application files
|
| 31 |
COPY . .
|
| 32 |
+
RUN chmod +x start.sh
|
| 33 |
|
| 34 |
# Create downloads directory with proper permissions
|
| 35 |
RUN mkdir -p downloads && chmod 777 downloads
|