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
FROM ubuntu:20.04
|
|
|
|
# Update system and install dependencies
|
|
# Download Wownero binaries from Gitea
|
|
# Confirm hashes match
|
|
# Install daemon binary
|
|
# Clean up
|
|
|
|
RUN apt-get update
|
|
RUN apt-get upgrade -y
|
|
RUN apt-get install -y tar wget xz-utils
|
|
|
|
ENV WOWNERO_HASH dbbe79f2cf13f822b19a17d4711f177abb9feb1182141b7126d1a7d8efacfaa5
|
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/86864223-7335-473e-a401-ab9da7f3188f
|
|
ENV WOWNERO_DL_FILE wownero.tar.bz2
|
|
ENV WOWNERO_SUMS_FILE sha256sums
|
|
|
|
WORKDIR /opt/wownero
|
|
|
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL}
|
|
|
|
RUN echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \
|
|
&& 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 \
|
|
&& tar xvf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
|
&& install ./tmp/wownero* /usr/local/bin/ \
|
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
|
|
|
WORKDIR /data
|
|
|
|
EXPOSE 34567
|
|
EXPOSE 34568
|
|
EXPOSE 34570
|