Merge pull request #148 from buptxdt/patch-1

Update Dockerfile
This commit is contained in:
Marcos Bomfim 2021-05-13 15:50:29 -03:00 committed by GitHub
commit 0efab4c893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ RUN apt-get update \
iptables \ iptables \
net-tools \ net-tools \
rfkill \ rfkill \
libpcap-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
# copy all files to app folder # copy all files to app folder
COPY . /usr/src/app COPY . /usr/src/app
@ -22,7 +23,7 @@ WORKDIR /usr/src/app
COPY config/hostapd/hostapd.conf /etc/hostapd/hostapd.conf COPY config/hostapd/hostapd.conf /etc/hostapd/hostapd.conf
#RUN pip3 --version #RUN pip3 --version
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1 RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
RUN python3.7 -m pip install pip RUN python3.7 -m pip install --upgrade pip
RUN python3.7 -m pip install pyqt5==5.14 RUN python3.7 -m pip install pyqt5==5.14
RUN python3.7 -m pip install -r requirements.txt RUN python3.7 -m pip install -r requirements.txt
RUN python3.7 setup.py install RUN python3.7 setup.py install