Skip to content

Commit

Permalink
rollback heimdall user and use root
Browse files Browse the repository at this point in the history
  • Loading branch information
rekibnikufesin committed Nov 23, 2022
1 parent 14ff8ca commit 1e28e27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ WORKDIR ${HEIMDALL_DIR}
COPY . .

RUN make install
RUN groupadd -g 20137 heimdall \
&& useradd -u 20137 --no-log-init --create-home -r -g heimdall heimdall \
&& chown -R heimdall:heimdall ${HEIMDALL_DIR}

COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh

USER heimdall
ENV SHELL /bin/bash
EXPOSE 1317 26656 26657

Expand Down
5 changes: 0 additions & 5 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ COPY heimdalld /usr/bin/
COPY heimdallcli /usr/bin/
COPY builder/files/genesis-mainnet-v1.json ${HEIMDALL_DIR}/
COPY builder/files/genesis-testnet-v4.json ${HEIMDALL_DIR}/
RUN groupadd -g 20137 heimdall \
&& useradd -u 20137 --no-log-init --create-home -r -g heimdall heimdall \
&& chown -R heimdall:heimdall ${HEIMDALL_DIR}

COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh

USER heimdall

EXPOSE 1317 26656 26657

ENTRYPOINT ["entrypoint.sh"]

0 comments on commit 1e28e27

Please sign in to comment.