diff --git a/docker-compose.yml b/docker-compose.yml index aaba222..7393324 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -48,4 +48,11 @@ services: build: context: ./ssb-server dockerfile: Dockerfile - ports \ No newline at end of file + ports: + - "8008:8008" + volumes: + - ~/.ssb-test/:/home/astroport/.ssb + secret2dunikey: + build: + context: . + dockerfile: ./secret2dunikey/Dockerfile \ No newline at end of file diff --git a/secret2dunikey/Dockerfile b/secret2dunikey/Dockerfile new file mode 100644 index 0000000..c9bfa39 --- /dev/null +++ b/secret2dunikey/Dockerfile @@ -0,0 +1,18 @@ +FROM debian@sha256:bf338ddc710dfb9b907a29ba661b35d0f6b3eae043515c4315f64c6e93409e94 + +LABEL MAINTAINER=chamalow <@qio8/4L4vnzq3qRD0dqKI7sTpey54u8ZWbaICfpJOZw=.ed25519> + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -y && \ + apt-get install base58=1.0.3-1 python3-pip=18.1-5 python3-setuptools=44.0.0-1 -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* && \ + useradd -ms /bin/bash astroport + +USER astroport +WORKDIR /home/astroport/ + +COPY ./secret2dunikey.sh /home/astroport/secret2dunikey.sh +ENTRYPOINT ["/bin/bash"] +CMD [ "secret2dunikey.sh"] \ No newline at end of file