mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-22 18:20:29 +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:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user