Initial commit
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM ubuntu:jammy as base
|
||||
|
||||
WORKDIR /app
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update
|
||||
|
||||
# Build tools
|
||||
RUN apt-get install -y git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
|
||||
|
||||
# Boost libs
|
||||
RUN apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
|
||||
|
||||
# Qt (required for dogecoin-qt GUI)
|
||||
RUN apt-get install -y libqt5gui5 libqt5core5a libqt5dbus5
|
||||
RUN apt-get install -y qttools5-dev qttools5-dev-tools
|
||||
|
||||
# Protobuf libs
|
||||
RUN apt-get install -y libprotobuf-dev
|
||||
# Protobuf compiler
|
||||
RUN apt-get install -y protobuf-compiler
|
||||
|
||||
# QR encode libs
|
||||
RUN apt-get install -y libqrencode-dev
|
||||
|
||||
# BerkeleyDB (version 5.3)
|
||||
RUN apt-get install -y libdb5.3++-dev libdb5.3++ libdb5.3-dev
|
||||
|
||||
# ZMQ (provides ZMQ API 4.x)
|
||||
RUN apt-get install -y libzmq3-dev
|
||||
|
||||
# Miniupnpc
|
||||
RUN apt-get install -y libminiupnpc-dev
|
||||
|
||||
# Make and autogen
|
||||
RUN apt-get install -y autogen
|
||||
RUN apt-get install -y make
|
||||
|
||||
# -------------------------------------
|
||||
FROM base as sources
|
||||
ADD https://github.com/dogecoin/dogecoin.git /tmp/dogecoin
|
||||
|
||||
FROM sources as conf
|
||||
WORKDIR "/tmp/dogecoin"
|
||||
RUN ./autogen.sh
|
||||
RUN ./configure --with-gui
|
||||
|
||||
FROM conf as make
|
||||
WORKDIR "/tmp/dogecoin"
|
||||
RUN make -j4 && make install
|
||||
|
||||
RUN useradd -m doge
|
||||
RUN su - -s /usr/bin/bash doge
|
||||
WORKDIR "/home/doge"
|
||||
|
||||
COPY app/*.sh /app/
|
||||
CMD ["/app/app.sh"]
|
||||
Reference in New Issue
Block a user