mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-08 15:54:58 +01:00
Add docker as installation option (#23)
* Add docker as installation option * Add newline to Dockerfile * Fix example typo * Add code review fixes
This commit is contained in:
parent
a95a0d1325
commit
d08195507e
2 changed files with 22 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM python:3.11-alpine
|
||||||
|
|
||||||
|
WORKDIR /extract
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
WORKDIR /files
|
||||||
|
|
||||||
|
ENTRYPOINT [ "python", "/extract/extract_otp_secret_keys.py" ]
|
||||||
11
README.md
11
README.md
|
|
@ -118,6 +118,17 @@ Install [devbox](https://github.com/jetpack-io/devbox), which is a wrapper for n
|
||||||
devbox shell
|
devbox shell
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
Install [Docker](https://docs.docker.com/get-docker/).
|
||||||
|
|
||||||
|
Build and run the app within the container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build . -t extract_otp
|
||||||
|
docker run --rm -v "$(pwd)":/files:ro extract_otp -p example_export.txt
|
||||||
|
```
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
### PyTest
|
### PyTest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue