Update Dockerfile
Browse files- Dockerfile +0 -12
Dockerfile
CHANGED
@@ -17,10 +17,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
17 |
# Install nslookup (dnsutils) for debugging
|
18 |
RUN apt-get update && apt-get install -y dnsutils
|
19 |
|
20 |
-
# Force using Google's DNS
|
21 |
-
#RUN sed -i '1inameserver 8.8.8.8\nnameserver 8.8.4.4' /etc/resolv.conf || echo "Failed to update DNS"
|
22 |
-
|
23 |
-
|
24 |
# Copy the app files
|
25 |
COPY --chown=user . /app
|
26 |
|
@@ -29,13 +25,5 @@ EXPOSE 7860
|
|
29 |
# 8443
|
30 |
# 5000
|
31 |
|
32 |
-
# Use Google's DNS inside the container
|
33 |
-
RUN echo "options timeout:1 attempts:1" >> /etc/resolv.conf && \
|
34 |
-
echo "nameserver 8.8.8.8" >> /etc/resolv.conf && \
|
35 |
-
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
|
36 |
-
|
37 |
-
|
38 |
# Run both FAST API and Telegram BOT
|
39 |
CMD ["bash", "start.sh"]
|
40 |
-
# CMD python3 app.py
|
41 |
-
#& python3 telegram_bot.py
|
|
|
17 |
# Install nslookup (dnsutils) for debugging
|
18 |
RUN apt-get update && apt-get install -y dnsutils
|
19 |
|
|
|
|
|
|
|
|
|
20 |
# Copy the app files
|
21 |
COPY --chown=user . /app
|
22 |
|
|
|
25 |
# 8443
|
26 |
# 5000
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
# Run both FAST API and Telegram BOT
|
29 |
CMD ["bash", "start.sh"]
|
|
|
|