rollback bor user and use root

This commit is contained in:
Will Button 2022-11-23 14:16:36 -07:00
parent 01e05cd1c3
commit 5fe83d35cf
No known key found for this signature in database
GPG key ID: EBA4422D1CA5F162
2 changed files with 0 additions and 8 deletions

View file

@ -12,9 +12,6 @@ COPY . .
RUN make bor
RUN cp build/bin/bor /usr/bin/
RUN groupadd -g 10137 bor \
&& useradd -u 10137 --no-log-init --create-home -r -g bor bor \
&& chown -R bor:bor ${BOR_DIR}
ENV SHELL /bin/bash
EXPOSE 8545 8546 8547 30303 30303/udp

View file

@ -10,11 +10,6 @@ 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"]