mirror of
https://github.com/videoman/proxmark3-web.git
synced 2025-03-01 01:43:13 +08:00
commit
9d20e249a3
3 changed files with 48 additions and 0 deletions
|
@ -8,6 +8,8 @@ Once you have the card writen, you should enable SSH, per the instructons [here]
|
|||
|
||||
SSH into your pi, and follow along with this...
|
||||
|
||||
## [Docker Install](docker/docker.md)
|
||||
|
||||
## Quick Install
|
||||
|
||||
```shell
|
||||
|
|
21
docker/Dockerfile
Normal file
21
docker/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM debian
|
||||
|
||||
RUN apt-get update && apt-get -y install --no-install-recommends git libbz2-dev ca-certificates build-essential \
|
||||
pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask python3-flask-sqlalchemy \
|
||||
python3-pip python3-dateutil python3-dateparser libev-dev gunicorn3
|
||||
|
||||
RUN pip3 install --upgrade pip && \
|
||||
pip3 install datetime && \
|
||||
pip3 install Flask-Babel
|
||||
|
||||
WORKDIR /home/pi
|
||||
RUN git clone --depth 1 https://github.com/RfidResearchGroup/proxmark3.git && \
|
||||
cd proxmark3 && \
|
||||
make all && \
|
||||
make install
|
||||
|
||||
WORKDIR /home/pi
|
||||
RUN git clone --depth 1 https://github.com/videoman/proxmark3-web.git
|
||||
WORKDIR /home/pi/proxmark3-web
|
||||
|
||||
CMD gunicorn3 --reload proxmark3-web:app -b:8080
|
25
docker/docker.md
Normal file
25
docker/docker.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Docker
|
||||
|
||||
proxmark3-web can be run inside Docker for ease of use, it should work on any Docker host, including a Raspberry Pi.
|
||||
|
||||
## Building
|
||||
|
||||
From the directory with the Dockerfile, run:
|
||||
|
||||
```sh
|
||||
$ docker build -t proxmark3-web .
|
||||
```
|
||||
|
||||
This will create a new Docker container with the latest Proxmark3 code as well as this proxmark3-web repository
|
||||
|
||||
## Running
|
||||
|
||||
```sh
|
||||
$ docker run -it --rm --name proxmark \
|
||||
-p 8080:8080 \
|
||||
--device=/dev/ttyACM0 \
|
||||
proxmark3-web
|
||||
```
|
||||
|
||||
Be sure to pass the Proxmark device to the container, it should be `/dev/ttyACM0` on most Linux systems.
|
||||
|
Loading…
Reference in a new issue