diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b5d4688 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ruby:3-bullseye + +RUN apt-get install gcc + +WORKDIR /opt +RUN git clone --recurse-submodules https://github.com/HARICA-official/onion-csr.git + +WORKDIR /opt/onion-csr +RUN gem install ffi && \ + gcc -shared -o libed25519.so -fPIC ed25519/src/*.c + +CMD ["ruby", "onion-csr.rb"]