-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from maticnetwork/wbutton/v0.3.0-docker-qa
Docker v0.3.0 release for QA
- Loading branch information
Showing
3 changed files
with
21 additions
and
8 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
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 |
---|---|---|
@@ -1,10 +1,20 @@ | ||
FROM alpine:3.14 | ||
|
||
ARG BOR_DIR=/var/lib/bor | ||
ENV BOR_DIR=$BOR_DIR | ||
|
||
RUN apk add --no-cache ca-certificates && \ | ||
mkdir -p /etc/bor | ||
COPY bor /usr/local/bin/ | ||
COPY builder/files/genesis-mainnet-v1.json /etc/bor/ | ||
COPY builder/files/genesis-testnet-v4.json /etc/bor/ | ||
mkdir -p ${BOR_DIR} | ||
|
||
WORKDIR ${BOR_DIR} | ||
COPY bor /usr/bin/ | ||
COPY builder/files/genesis-mainnet-v1.json ${BOR_DIR} | ||
COPY builder/files/genesis-testnet-v4.json ${BOR_DIR} | ||
RUN groupadd -g 10137 bor \ | ||
&& useradd -u 10137 --no-log-init --create-home -r -g bor bor \ | ||
&& chown -R bor:bor ${BOR_DIR} | ||
|
||
USER bor | ||
|
||
EXPOSE 8545 8546 8547 30303 30303/udp | ||
ENTRYPOINT ["bor"] |