wifipumpkin3/Dockerfile

33 lines
890 B
Docker
Raw Normal View History

FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get -y install \
hostapd \
2020-03-28 03:14:48 +00:00
nano \
2020-04-02 23:05:00 +00:00
iw \
wireless-tools \
ifupdown \
2020-04-02 23:05:00 +00:00
python3.7 \
python3-pip \
2020-04-02 23:05:00 +00:00
python3.7-dev \
iptables \
net-tools \
rfkill \
libpcap-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# copy all files to app folder
COPY . /usr/src/app
WORKDIR /usr/src/app
COPY config/hostapd/hostapd.conf /etc/hostapd/hostapd.conf
2020-04-02 23:05:00 +00:00
#RUN pip3 --version
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
RUN python3.7 -m pip install --upgrade pip
RUN python3.7 -m pip install pyqt5==5.14
2020-04-02 23:05:00 +00:00
RUN python3.7 -m pip install -r requirements.txt
RUN python3.7 setup.py install
2020-06-23 15:48:02 +00:00
#CMD /usr/local/bin/wifipumpkin3 -m docker
WORKDIR /root/.config/wifipumpkin3
CMD /usr/local/bin/wifipumpkin3