|
|
@ -6,19 +6,20 @@ FROM ubuntu:20.04
|
|
|
|
# Install daemon binary
|
|
|
|
# Install daemon binary
|
|
|
|
# Clean up
|
|
|
|
# Clean up
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
RUN apt-get update
|
|
|
|
&& apt-get upgrade -y \
|
|
|
|
RUN apt-get upgrade -y
|
|
|
|
&& apt-get install -y tar wget
|
|
|
|
RUN apt-get install -y tar wget xz-utils
|
|
|
|
|
|
|
|
|
|
|
|
ENV WOWNERO_HASH f30cead0cef928c3dd8026af0d56f60bfac013ab6a0091b06f7806b91cb4c019
|
|
|
|
ENV WOWNERO_HASH d482f54536b4dd936566a20bea15d1dc152a8b03285c71c84a5dca32afa4a438
|
|
|
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/eff94812-d077-45b2-a101-daf76932b469
|
|
|
|
ENV WOWNERO_DL_URL https://git.wownero.com/attachments/5031ad4e-f0b8-42ab-87a2-9568cfaa8ec2
|
|
|
|
ENV WOWNERO_DL_FILE wownero.tar.bz2
|
|
|
|
ENV WOWNERO_DL_FILE wownero.tar.xz
|
|
|
|
ENV WOWNERO_SUMS_FILE sha256sums
|
|
|
|
ENV WOWNERO_SUMS_FILE sha256sums
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /opt/wownero
|
|
|
|
WORKDIR /opt/wownero
|
|
|
|
|
|
|
|
|
|
|
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL} \
|
|
|
|
RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL}
|
|
|
|
&& echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \
|
|
|
|
|
|
|
|
|
|
|
|
RUN echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \
|
|
|
|
&& sha256sum -c ${WOWNERO_SUMS_FILE}; \
|
|
|
|
&& sha256sum -c ${WOWNERO_SUMS_FILE}; \
|
|
|
|
if [ "$?" -eq 0 ]; \
|
|
|
|
if [ "$?" -eq 0 ]; \
|
|
|
|
then \
|
|
|
|
then \
|
|
|
@ -28,8 +29,8 @@ RUN wget -qO ${WOWNERO_DL_FILE} ${WOWNERO_DL_URL} \
|
|
|
|
exit 5; \
|
|
|
|
exit 5; \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
&& mkdir ./tmp \
|
|
|
|
&& mkdir ./tmp \
|
|
|
|
&& tar xjf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
|
|
|
&& tar xvf ${WOWNERO_DL_FILE} -C ./tmp --strip 1 \
|
|
|
|
&& mv ./tmp/* /usr/local/bin/ \
|
|
|
|
&& install ./tmp/wownero* /usr/local/bin/ \
|
|
|
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
|
|
|
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE}
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
WORKDIR /data
|
|
|
|