forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: ff changes from other branches
- Loading branch information
Showing
4 changed files
with
362 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# syntax=docker/dockerfile:1.3 | ||
FROM ubuntu:focal | ||
LABEL maintainer="Dash Developers <dev@dash.org>" | ||
LABEL description="Dockerised DashCore" | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
ARG TAG | ||
ARG BRANCH | ||
|
||
ENV HOME /dash | ||
|
||
# add user with specified (or default) user/group ids | ||
ENV USER_ID ${USER_ID:-1000} | ||
ENV GROUP_ID ${GROUP_ID:-1000} | ||
RUN groupadd -g ${GROUP_ID} dash && \ | ||
useradd -u ${USER_ID} -g dash -s /bin/bash -m -d /dash dash && \ | ||
mkdir /dash/.dashcore && \ | ||
chown dash:dash -R /dash | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY dashcore-binaries/${BRANCH}/dashcore* /dash | ||
|
||
RUN mach=$(uname -m) \ | ||
&& case $mach in aarch64) arch="aarch64-linux-gnu"; ;; x86_64) arch="x86_64-linux-gnu"; ;; *) echo "ERROR: Machine type $mach not supported."; ;; esac \ | ||
&& cd /dash \ | ||
&& tar xvzf dashcore*$arch.tar.gz \ | ||
&& echo $(ls -1 /dash) \ | ||
&& cp dashcore-0.17.0/bin/* /usr/local/bin \ | ||
&& rm -rf dash* | ||
|
||
USER dash | ||
|
||
VOLUME ["/dash"] | ||
|
||
COPY dash/contrib/containers/deploy/docker-entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 9998 9999 19998 19999 | ||
|
||
WORKDIR /dash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.