anu
#1
FROM python:3.7
ENV PYTHONUNBUFFERED 1
RUN apt-get update -y && apt-get install xvfb -y && apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic -y && apt-get install wkhtmltopdf -y
RUN mkdir /code
WORKDIR /code
COPY requirement.txt /code/
RUN pip install -r requirement.txt
COPY . /code/
COPY ./config.ini.dev.example /code/config.ini
EXPOSE 8000
CMD python manage.py runserver 0.0.0.0:8000
here is above my docker file but i run gitlab pipeline it show error like this please refer attached screenshot
please help in this
anu
#2
please suggests me in this
Ayman
#4
Are you behind a VPN or using a proxy?
anu
#5
yes using VPN ,but it failed
Ayman
#6
the issue with your vpn not the Dockerfile. try to disbale it
anu
#7
no many pipeline running ,but not this one
anu
#8
using VPN many pipeline running ,but not this one
anu
#9
E: Unable to locate package xvfbThe command '/bin/sh -c apt-get update -y && apt-get install xvfb -y && apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic -y && apt-get install wkhtmltopdf -y' returned a non-zero code: 100
```it show error like this
Ayman
#10
I tried your Dockefile and it woks well. Check temporary failure resolving
error
anu
#11
how to check this and troubleshoot this
Ayman
#12
As I mentioned, this issue is related to the VPN. try to disable it
anu
#13
without vpn i cannot run this
gitlab run with vpn only
anu
#14
any solution because without vpn i cannot run this
gitlab run with vpn only