Quantcast
Channel: Active questions tagged dockerfile - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 136

Unable to understand Docker error

$
0
0

I am new to Docker and trying to run a webserver written in Python. I am using Linux Debian running as virtual machine on a Windows host. I have mounted the required folder from my Windows host to the virtual machine. So when I make changes to the folder in Windows, the same change is reflected in my VM. The folder name is "resultsdb" and it contains all the Python files,etc. The folder contents are [in Debian VM] :

enter image description here

docker run hello-world is working successfully. I am using docker build -t resultsdb . (with a dot at the end) to build the Docker image. But I am getting the following error:

enter image description here

Please tell me where I am going wrong. Thanks !

Edit : The contents of Dockerfile are below :

############################################################################### Base image##############################################################################FROM centos:6.9 as resultsdbbase# The CentOS package index for old releases has been moved...RUN sed -i 's/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/CentOS-Base.repo && \    sed -i 's/^#baseurl/baseurl/' /etc/yum.repos.d/CentOS-Base.repo && \    sed -i 's/mirror.centos.org/vault.centos.org/' /etc/yum.repos.d/CentOS-Base.repoRUN yum -y update && \    yum -y install epel-release && \    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6RUN yum -y update && \    yum -y install \        python \        mysql-libs \        openldap \        freetype \        libpng \&& yum clean all############################################################################### Builder image##############################################################################FROM resultsdbbase as resultsdbbuilderRUN yum -y update && \    yum -y install \        gcc \        gcc-gfortran \        gcc-c++ \        python-devel \        python-virtualenv \        mysql-devel \        openldap-devel \        freetype-devel \        libpng-devel \&& yum clean allCOPY install /tmp/installRUN cd /tmp/install; bash install.sh############################################################################### Runtime image##############################################################################FROM resultsdbbaseRUN useradd -u 1000 testresultsCOPY --from=resultsdbbuilder /appenv /appenvWORKDIR /appENV PATH /appenv/bin:$PATHCOPY app /appRUN python setup.py develop && python -m compileall /app/testresultsCOPY docker-entrypoint.sh /docker-entrypoint.shENTRYPOINT ["/docker-entrypoint.sh"]USER testresultsEXPOSE 8080CMD ["serve"]

I've read that Docker has withdrawn support for CentOS.


Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>