diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..37f7f1e --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/README.md b/README.md index e500dc6..604e626 100644 --- a/README.md +++ b/README.md @@ -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