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.
23 lines
649 B
Docker
23 lines
649 B
Docker
4 years ago
|
FROM ubuntu:19.10
|
||
|
|
||
|
RUN apt-get update && apt-get install -y build-essential
|
||
|
|
||
|
RUN apt-get install -y curl git
|
||
|
|
||
|
RUN useradd -m -d /home/wownero-explorer wownero-explorer
|
||
|
|
||
|
RUN mkdir -p /srv && chown -R wownero-explorer:wownero-explorer /srv
|
||
|
|
||
|
USER wownero-explorer
|
||
|
WORKDIR /srv
|
||
|
|
||
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | RUSTUP_HOME=/home/wownero-explorer/.rustup sh -s -- -y
|
||
|
RUN git clone https://git.wownero.com/lza_menace/wownero-explorer && \
|
||
|
cd wownero-explorer && \
|
||
|
~/.cargo/bin/rustup override set nightly && \
|
||
|
~/.cargo/bin/cargo build --release
|
||
|
|
||
|
WORKDIR /srv/wownero-explorer
|
||
|
|
||
|
CMD './target/release/wownero-explorer'
|