Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 4be766a

Browse files
gabreal5chdn
authored andcommitted
fix docker build (#9971)
1 parent c2d829b commit 4be766a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/docker/hub/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
1818
RUN groupadd -g 1000 parity \
1919
&& useradd -m -u 1000 -g parity -s /bin/sh parity
2020

21-
USER parity
2221

2322
#add TARGET to docker image
2423
COPY artifacts/x86_64-unknown-linux-gnu/$TARGET /bin/$TARGET
@@ -29,6 +28,9 @@ RUN chmod +x ./entrypoint.sh
2928

3029
COPY scripts/docker/hub/check_sync.sh /check_sync.sh
3130

31+
# switch to user parity here
32+
USER parity
33+
3234
# setup ENTRYPOINT
3335
EXPOSE 5001 8080 8082 8083 8545 8546 8180 30303/tcp 30303/udp
3436
ENTRYPOINT ["./entrypoint.sh"]

0 commit comments

Comments
 (0)