Skip to content

Commit 04c35c0

Browse files
author
rootware
committed
added docker support
1 parent bbc755e commit 04c35c0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.9-slim
2+
3+
USER root
4+
5+
RUN python3 -m pip install --upgrade pip && \
6+
python3 -m pip install --upgrade pyredactkit && \
7+
groupadd -r nonroot && \
8+
useradd -m -r -g nonroot -d /home/nonroot -s /usr/sbin/nologin -c "Nonroot User" nonroot && \
9+
mkdir -p /home/nonroot/workdir && \
10+
chown -R nonroot:nonroot /home/nonroot
11+
12+
USER nonroot
13+
ENV HOME /home/nonroot
14+
WORKDIR /home/nonroot/workdir
15+
VOLUME ["/home/nonroot/workdir"]
16+
ENV USER nonroot
17+
ENTRYPOINT ["/usr/local/bin/prk"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Redacts and Unredacts the following from your text files. 📄 ✍️
3939
Demo:
4040
![demo](./images/pyredactdemo.gif)
4141

42+
To use via docker
43+
44+
```bash
45+
docker run -v "$(pwd):/home/nonroot/workdir" brootware/pyredactkit 'This is my ip: 127.0.0.1. My email is [email protected]. My favorite secret link is github.com'
46+
```
47+
4248
Quick install
4349

4450
```bash

0 commit comments

Comments
 (0)