소스 검색

split COPY --chown in COPY & RUN chmod to increase backward compatibility

Fabian Peter Hammerle 5 년 전
부모
커밋
e3fb171bd4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -6,7 +6,8 @@ RUN adduser -S onion
 RUN mkdir -m u=rwx,g=,o= /onion-service && chown onion /onion-service
 VOLUME /onion-service
 
-COPY --chown=onion:nobody torrc.template /
+COPY torrc.template /
+RUN chmod a+r /torrc.template
 
 ENV VERSION 3
 ENV VIRTUAL_PORT 80