# Help needed in Docker build

**URL:** <https://forums.docker.com/t/help-needed-in-docker-build/85712>\
**Category:** General\
**Created:** [December 12, 2019, 7:11am UTC](https://forums.docker.com/t/help-needed-in-docker-build/85712 "2019-12-12T07:11:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blason16](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/blason16/32/32688_2.png) [@blason16](https://forums.docker.com/u/blason16)\
**Post date:** [December 12, 2019, 7:11am UTC](https://forums.docker.com/t/help-needed-in-docker-build/85712/1 "2019-12-12T07:11:54Z")

</div>

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.

```auto
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

```auto
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"]

```

---

<div class="post-metadata">

**Author:** ![blason16](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/blason16/32/32688_2.png) [@blason16](https://forums.docker.com/u/blason16)\
**Post date:** [December 12, 2019, 9:46am UTC](https://forums.docker.com/t/help-needed-in-docker-build/85712/2 "2019-12-12T09:46:37Z")

</div>

OK - I got it resolved since it does not have directory in the path it wasnt copying.
