Hi Folks,
I am pretty novice in Docker and have just started. However I am planning to build Docker Image using Dockerfile but this is failing at below point and stating the it could not copy the file.
However I see the file is present in directory it should
have been copied in docker image. Any clue or help is much appreciated to eliminate the cause.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 732fd1affe22
---> 173bb8764c78
Step 4/9 : COPY . /opt/honeysap
---> 9a9b72db1a6c
Step 5/9 : WORKDIR /opt/honeysap
---> Running in 9017f5898dfb
Removing intermediate container 9017f5898dfb
---> e3c6d22a7dda
Step 6/9 : RUN cd /opt/honeysap && python setup.py install && rm -rf /tmp/* /var/tmp/*
---> Running in 6a7cd3e86d91
python: can't open file 'setup.py': [Errno 2] No such file or directory
The command '/bin/sh -c cd /opt/honeysap && python setup.py install && rm -rf /tmp/* /var/tmp/*' returned a non-zero code: 2
And here is my Dockerfile
FROM ubuntu:18.04
MAINTAINER mgallo@secureauth.com
# Install system packages
RUN apt-get update && apt-get install -y \
git \
python-pip \
python-dev \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /opt/honeysap
WORKDIR /opt/honeysap
# Clone git repo and install HoneySAP
RUN cd /opt/honeysap && \
python setup.py install && \
rm -rf /tmp/* /var/tmp/*
# Install extra python packages
RUN pip install -r requirements-optional.txt
EXPOSE 3299 8001
CMD ["/usr/local/bin/honeysap", "--config-file", "honeysap.yml"]