2020-12-31 18:45:31 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
# Update system and install dependencies
|
|
|
|
# Download Wownero binaries from Gitea
|
|
|
|
# Confirm hashes match
|
|
|
|
# Install daemon binary
|
|
|
|
# Clean up
|
|
|
|
|
2021-06-30 18:33:03 +00:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get upgrade -y
|
|
|
|
RUN apt-get install -y tar wget xz-utils
|
2020-12-31 18:45:31 +00:00
|
|
|
|
2021-07-12 22:06:06 +00:00
|
|
|
ENV WOWNERO_HASH d9402ca2a71809c51499aab41772ef5052cd5a84256883e88997a5ab7a00c848
|
|
|
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/c7ead1fb-49ca-4abe-9d5f-51c942e353ba
|
2021-06-30 18:33:03 +00:00
|
|
|
ENV WOWNERO_DL_FILE wownero.tar.xz
|
2021-01-19 08:39:59 +00:00
|
|
|
ENV WOWNERO_SUMS_FILE sha256sums
|
|
|
|
|
|
|
|
WORKDIR /opt/wownero
|
|
|
|
|
2021-06-30 18:33:03 +00:00
|
|
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL}
|
|
|
|
|
|
|
|
RUN echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \
|
2020-12-31 18:45:31 +00:00
|
|
|
&& sha256sum -c ${WOWNERO_SUMS_FILE}; \
|
|
|
|
if [ "$?" -eq 0 ]; \
|
|
|
|
then \
|
|
|
|
echo -e "[+] Hashes match - proceeding with container build"; \
|
|
|
|
else \
|
|
|
|
echo -e "[!] Hashes do not match - exiting"; \
|
|
|
|
exit 5; \
|
|
|
|
fi \
|
|
|
|
&& mkdir ./tmp \
|
2021-06-30 18:33:03 +00:00
|
|
|
&& tar xvf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
|
|
|
&& install ./tmp/wownero* /usr/local/bin/ \
|
2020-12-31 18:45:31 +00:00
|
|
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
|
2021-02-26 09:45:42 +00:00
|
|
|
EXPOSE 34567
|
|
|
|
EXPOSE 34568
|
|
|
|
EXPOSE 34570
|