Bash Script: Unable to locate package all packages

165 Views Asked by At

enter image description here

https://github.com/archanchoudhury/Cuckoo-Script/blob/main/Cuckoo-Pre1.sh - bash script

the commands in the above file is running when it is copied and pasted separately but when we run it as bash script it showing error unable to find the package... for all packages

And it will be helpful if anyone can tell how to make the full fledge cuckoo docker file

1

There are 1 best solutions below

2
apan On

See if below dockerfile will be of any help to you

FROM ubuntu
    
    RUN apt-get update && apt-get install -y \
        python-dev \
        python-pip \
        libffi-dev \
        libssl-dev \
        python-virtualenv \
        build-essential \
        git \
        libjpeg-dev \
        zlib1g-dev
    
    RUN git clone https://github.com/cuckoosandbox/cuckoo.git
    
    RUN cd cuckoo && \
        virtualenv venv && \
        . venv/bin/activate && \
        pip install -r requirements.txt
    
    EXPOSE 8090
    
    CMD ["python", "/cuckoo/cuckoo.py"]