소스 검색

Merge pull request #93 from pyth-network/drozdziak1/p2w-terra-relay-harden-container

p2w-terra-relay: ignore lib and node, own project dir in docker
Stanisław Drozd 3 년 전
부모
커밋
4e83a9888a
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      third_party/pyth/p2w-terra-relay/.dockerignore
  2. 1 1
      third_party/pyth/p2w-terra-relay/Dockerfile.pyth_relay

+ 2 - 0
third_party/pyth/p2w-terra-relay/.dockerignore

@@ -0,0 +1,2 @@
+/lib
+/node_modules

+ 1 - 1
third_party/pyth/p2w-terra-relay/Dockerfile.pyth_relay

@@ -9,7 +9,7 @@ RUN npm install && npm run build && npm cache clean --force
 
 RUN mkdir -p /app/pyth_relay/logs
 RUN addgroup -S pyth -g 10001 && adduser -S pyth -G pyth -u 10001
-RUN chown -R pyth:pyth src/ logs/ lib/
+RUN chown -R pyth:pyth .
 USER pyth
 
 CMD [ "node", "lib/index.js" ]