2020-05-27 22:58:14 +00:00
|
|
|
FROM ubuntu:18.04
|
2020-03-28 03:11:16 +00:00
|
|
|
|
|
|
|
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 \
|
2020-04-14 14:43:23 +00:00
|
|
|
wireless-tools \
|
2020-03-28 03:11:16 +00:00
|
|
|
ifupdown \
|
2020-04-02 23:05:00 +00:00
|
|
|
python3.7 \
|
2020-03-28 03:11:16 +00:00
|
|
|
python3-pip \
|
2020-04-02 23:05:00 +00:00
|
|
|
python3.7-dev \
|
2020-03-28 03:11:16 +00:00
|
|
|
iptables \
|
|
|
|
net-tools \
|
|
|
|
rfkill \
|
2021-05-07 04:20:02 +00:00
|
|
|
libpcap-dev \
|
2020-03-28 03:11:16 +00:00
|
|
|
&& 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
|
2021-05-07 01:55:00 +00:00
|
|
|
RUN python3.7 -m pip install --upgrade pip
|
2020-05-27 23:53:57 +00:00
|
|
|
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
|