File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,17 @@ RUN apt update && \
1717 apt install -y libncursesw5-dev && \
1818 apt-get install -y ca-certificates && update-ca-certificates
1919
20+ RUN useradd --create-home grin
21+ USER grin
22+
2023# Create mainnet config
21- WORKDIR /root /.grin/main
24+ WORKDIR /home/grin /.grin/main
2225RUN grin server config
2326RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
2427RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:3413"/' grin-server.toml
2528
2629# Create testnet config
27- WORKDIR /root /.grin/test
30+ WORKDIR /home/grin /.grin/test
2831RUN grin --testnet server config
2932RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
3033RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:13413"/' grin-server.toml
@@ -38,9 +41,9 @@ EXPOSE 13413 13414
3841# Stratum port
3942EXPOSE 3416
4043
41- WORKDIR /root /.grin
44+ WORKDIR /home/grin /.grin
4245
43- VOLUME ["/root /.grin" ]
46+ VOLUME ["/home/grin /.grin" ]
4447
4548ENTRYPOINT ["grin" , "--no-tui" ]
4649CMD ["server" , "run" ]
You can’t perform that action at this time.
0 commit comments