You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
4 years ago
|
FROM ubuntu:20.04
|
||
|
|
||
|
# Update system and install dependencies
|
||
|
# Download Wownero binaries from Gitea
|
||
|
# Confirm hashes match
|
||
|
# Install daemon binary
|
||
|
# Clean up
|
||
|
|
||
4 years ago
|
RUN apt-get update
|
||
|
RUN apt-get upgrade -y
|
||
|
RUN apt-get install -y tar wget xz-utils
|
||
4 years ago
|
|
||
3 years ago
|
ENV WOWNERO_HASH cf1c822dfef2377f79a48ebf51054441e152b71f06760f81a02613ffa1dc69b2
|
||
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/b5cc0583-9787-4b9e-94f4-26101025354c
|
||
|
ENV WOWNERO_DL_FILE wownero.tar.bz2
|
||
4 years ago
|
ENV WOWNERO_SUMS_FILE sha256sums
|
||
|
|
||
|
WORKDIR /opt/wownero
|
||
|
|
||
4 years ago
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL}
|
||
|
|
||
|
RUN echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \
|
||
4 years ago
|
&& 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 \
|
||
4 years ago
|
&& tar xvf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
||
|
&& install ./tmp/wownero* /usr/local/bin/ \
|
||
4 years ago
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
||
|
|
||
|
WORKDIR /data
|
||
|
|
||
4 years ago
|
EXPOSE 34567
|
||
|
EXPOSE 34568
|
||
|
EXPOSE 34570
|