Add docker as installation option (#23)

* Add docker as installation option

* Add newline to Dockerfile

* Fix example typo

* Add code review fixes
pull/25/head
Ilya Kaznacheev 2 years ago committed by GitHub
parent a95a0d1325
commit d08195507e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" ]

@ -118,6 +118,17 @@ Install [devbox](https://github.com/jetpack-io/devbox), which is a wrapper for n
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
### PyTest

Loading…
Cancel
Save