Skip to content

Commit 945a8a0

Browse files
committed
fix: permissions
1 parent bdd7ce1 commit 945a8a0

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,21 @@ 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-
2320
# Create mainnet config
24-
WORKDIR /home/grin/.grin/main
21+
WORKDIR /root/.grin/main
2522
RUN grin server config
2623
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
2724
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:3413"/' grin-server.toml
2825

2926
# Create testnet config
30-
WORKDIR /home/grin/.grin/test
27+
WORKDIR /root/.grin/test
3128
RUN grin --testnet server config
3229
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
3330
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:13413"/' grin-server.toml
3431

35-
RUN chmod 777 -R /home/grin/.grin
32+
RUN chmod 777 -R /root/.grin
3633

37-
VOLUME ["/home/grin/.grin"]
34+
VOLUME ["/root/.grin"]
3835

3936
# Mainnet ports
4037
EXPOSE 3413 3414
@@ -45,7 +42,7 @@ EXPOSE 13413 13414
4542
# Stratum port
4643
EXPOSE 3416
4744

48-
WORKDIR /home/grin/.grin
45+
WORKDIR /root/.grin
4946

5047
ENTRYPOINT ["grin", "--no-tui"]
5148
CMD ["server", "run"]

0 commit comments

Comments
 (0)