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
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get upgrade -y \
|
|
|
|
&& apt-get install -y tar wget
|
|
|
|
|
2021-02-08 23:16:06 +00:00
|
|
|
ENV WOWNERO_HASH 709b905cf853035b1e1660f9de54be44ef4fcfef3924489bff38dc090866ff58
|
|
|
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/ff0be4f5-37b6-4208-aee3-0ca4c8e97c89
|
2021-01-19 08:39:59 +00:00
|
|
|
ENV WOWNERO_DL_FILE wownero.tar.bz2
|
|
|
|
ENV WOWNERO_SUMS_FILE sha256sums
|
|
|
|
|
|
|
|
WORKDIR /opt/wownero
|
|
|
|
|
2020-12-31 18:45:31 +00:00
|
|
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL} \
|
|
|
|
&& 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 xjf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
|
|
|
&& mv ./tmp/* /usr/local/bin/ \
|
|
|
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
EXPOSE 18080
|
|
|
|
EXPOSE 18081
|
|
|
|
EXPOSE 18082
|
|
|
|
EXPOSE 18083
|