Merge pull request #79 from mleku/master

arch linux docker
This commit is contained in:
Doug Hoyte
2023-11-07 16:47:08 -05:00
committed by GitHub

37
arch.Dockerfile Normal file
View File

@ -0,0 +1,37 @@
# arch based Dockerfile built by mleku
# npub1mlekuhhxqq6p8w9x5fs469cjk3fu9zw7uptujr55zmpuhhj48u3qnwx3q5
# this is a basic dockerfile showing the build on arch linux
FROM archlinux:latest
WORKDIR /app
COPY . .
# update pacman keys and sync repos
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm \
# build essentials
base-devel git \
# perl stuff
cpanminus perl-template-toolkit perl-yaml \
# flatbuffers, lmdb, libsecp256k1
flatbuffers lmdb libsecp256k1
# necessary perl pod
RUN /usr/bin/vendor_perl/cpanm Regexp::Grammars
# update submodules
RUN git submodule update --init
# build golpe
RUN make setup-golpe
# build strfry
RUN make
EXPOSE 7777
ENTRYPOINT ["/app/strfry"]
CMD ["relay"]