Test with dumbass nslookups to warm dns?
This commit is contained in:
parent
6566d36066
commit
71fbd1d00f
14
Dockerfile
14
Dockerfile
@ -1,12 +1,16 @@
|
|||||||
FROM python:3.8 as build
|
FROM python:3.8 as build
|
||||||
ADD app/requirements.txt /requirements.txt
|
ADD app/requirements.txt /requirements.txt
|
||||||
RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt
|
RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt &&
|
||||||
|
nslookup deb.debian.org &&
|
||||||
|
nslookup pypi.org
|
||||||
|
|
||||||
FROM python:3.8-slim
|
FROM python:3.8-slim
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick \
|
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick &&
|
||||||
&& apt-get autoremove -y \
|
apt-get autoremove -y &&
|
||||||
&& apt-get purge -y --auto-remove \
|
apt-get purge -y --auto-remove &&
|
||||||
&& rm -rf /var/lib/apt/lists/* /root
|
rm -rf /var/lib/apt/lists/* /root &&
|
||||||
|
nslookup deb.debian.org &&
|
||||||
|
nslookup pypi.org
|
||||||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||||
ADD app /app
|
ADD app /app
|
||||||
CMD python /app/bot.py
|
CMD python /app/bot.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user