Reduces the number of layers.
This commit is contained in:
parent
d4cdb35e29
commit
0f98a32963
11
Dockerfile
11
Dockerfile
|
@ -13,11 +13,12 @@ COPY ngrok.yml /home/ngrok/.ngrok2/
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
|
||||||
# Create non-root user.
|
# Create non-root user.
|
||||||
RUN echo 'ngrok:x:6737:6737:Ngrok user:/home/ngrok:/bin/false' >> /etc/passwd
|
RUN set -x \
|
||||||
RUN echo 'ngrok:x:6737:' >> /etc/group
|
&& echo 'ngrok:x:6737:6737:Ngrok user:/home/ngrok:/bin/false' >> /etc/passwd \
|
||||||
RUN chown ngrok:ngrok /home/ngrok
|
&& echo 'ngrok:x:6737:' >> /etc/group \
|
||||||
RUN chmod -R go=u,go-w /home/ngrok
|
&& chown ngrok:ngrok /home/ngrok \
|
||||||
RUN chmod go= /home/ngrok
|
&& chmod -R go=u,go-w /home/ngrok \
|
||||||
|
&& chmod go= /home/ngrok
|
||||||
|
|
||||||
USER ngrok
|
USER ngrok
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue