-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (16 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
18 lines (16 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pulling alpine linux
FROM alpine:3.10
# prepare
RUN apk update && \
apk add g++ && \
apk add git python3 py-pip && \
pip3 install --upgrade pip && \
git clone https://github.com/AICDEV/butt-lock.git && \
pip3 install -r butt-lock/requirements.txt && \
mkdir butt-lock/temp && \
echo "Hello" > butt-lock/temp/hello.txt && \
echo "World" > butt-lock/temp/world && \
echo "run the following command 'python3 main.py --mode=encrypt --dir ./temp --replace copy' inside butt-lock folder" > HOW_TO_ENCRYPT && \
echo "run the following command 'python3 main.py --mode=decrypt --dir ./temp/ --recovery ./buttlock/buttlock_recovery' inside butt-lock folder" > HOW_TO_DECRYPT
# JUST FOR THE DEMO - DON'T USE IT IN PRODUCTION
ENTRYPOINT ["tail", "-f", "/dev/null"]