-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Requires to run from repository root and to copy the binary in the build folder | ||
FROM ubuntu:20.04 AS base | ||
LABEL maintainer="Frequency Team" | ||
LABEL description="Frequency parachain full node for Rococo testnet" | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates | ||
|
||
FROM ubuntu:20.04 | ||
RUN useradd -m -u 1000 -U -s /bin/sh -d /frequency frequency && \ | ||
mkdir /data && \ | ||
chown -R frequency:frequency /data | ||
|
||
# RUN apt-get update && \ | ||
# apt-get install -y jq curl tini | ||
|
||
USER frequency | ||
|
||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
# COPY --chown=frequency target/release/frequency.amd64 ./frequency/frequency | ||
COPY --chown=frequency target/release/frequency ./frequency/ | ||
RUN chmod uog+x ./frequency/frequency | ||
|
||
# 9933 P2P port | ||
# 9944 for RPC call | ||
# 30333 for Websocket | ||
EXPOSE 9933 9944 30333 | ||
|
||
VOLUME ["/data"] | ||
|
||
ENTRYPOINT ["/frequency/frequency"] | ||
CMD [ "--force-authoring", \ | ||
"--chain=frequency-rococo", \ | ||
"--base-path=/data", \ | ||
"--wasm-execution=compiled", \ | ||
"--execution=wasm", \ | ||
"--port=30333", \ | ||
"--rpc-port=9933", \ | ||
"--ws-port=9944", \ | ||
"--rpc-external", \ | ||
"--rpc-cors=all", \ | ||
"--ws-external", \ | ||
"--rpc-methods=Unsafe", \ | ||
"--state-cache-size=0" \ | ||
] |