Merge pull request #594 from maticnetwork/wbutton/docker-user-rollback

Docker User
This commit is contained in:
Will Button 2022-11-23 15:42:22 -07:00 committed by GitHub
commit 58a63147f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -12,9 +12,6 @@ COPY . .
RUN make bor RUN make bor
RUN cp build/bin/bor /usr/bin/ 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 ENV SHELL /bin/bash
EXPOSE 8545 8546 8547 30303 30303/udp EXPOSE 8545 8546 8547 30303 30303/udp

View file

@ -10,11 +10,6 @@ WORKDIR ${BOR_DIR}
COPY bor /usr/bin/ COPY bor /usr/bin/
COPY builder/files/genesis-mainnet-v1.json ${BOR_DIR} COPY builder/files/genesis-mainnet-v1.json ${BOR_DIR}
COPY builder/files/genesis-testnet-v4.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 EXPOSE 8545 8546 8547 30303 30303/udp
ENTRYPOINT ["bor"] ENTRYPOINT ["bor"]