-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
38 lines (21 loc) · 1011 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:18.04
WORKDIR /tmp
# dependencies for libnfc
RUN apt update && apt install -y autoconf pcsc-tools pcscd libpcsclite-dev libpcsclite1 libusb-dev wget build-essential git pkg-config
RUN apt-get install -y libpcsclite-dev libpcsclite1 pcsc-tools pcscd
RUN apt-get install -y automake autoconf libtool libusb-dev
RUN wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.7.1/libnfc-1.7.1.tar.bz2
RUN tar xjf libnfc-1.7.1.tar.bz2
RUN cd libnfc-1.7.1 && autoreconf -i && ./configure && make && make install && ldconfig
# dependencies for mfoc
RUN git clone https://github.com/nfc-tools/mfoc.git
RUN cd mfoc && autoreconf -is && ./configure && make && make install
# dependencies for running the python script
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.7 python3-pip
WORKDIR /app
COPY . .
RUN pip3 install -r requirements.txt
CMD python3 RFID_mifare_cloner/rfid_mifare_cloner.py