From 0e97432dd231a67057c91cee2f185fd254fb02eb Mon Sep 17 00:00:00 2001 From: Idan Bidani Date: Thu, 13 Feb 2020 13:38:27 -0500 Subject: [PATCH] Allow Sync for non-root containers-hotreload example - integration dir --- integration/examples/hot-reload/node/Dockerfile | 4 ++-- integration/examples/hot-reload/python/Dockerfile | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/integration/examples/hot-reload/node/Dockerfile b/integration/examples/hot-reload/node/Dockerfile index 2b8add28ab4..5ac0f1201f6 100644 --- a/integration/examples/hot-reload/node/Dockerfile +++ b/integration/examples/hot-reload/node/Dockerfile @@ -5,5 +5,5 @@ EXPOSE 3000 CMD ["npm", "run", "dev"] COPY package* ./ -RUN npm ci -COPY src . +RUN chown -R 400:400 /app && npm ci +COPY src . \ No newline at end of file diff --git a/integration/examples/hot-reload/python/Dockerfile b/integration/examples/hot-reload/python/Dockerfile index 5239337dfca..8b9e50ecfa3 100644 --- a/integration/examples/hot-reload/python/Dockerfile +++ b/integration/examples/hot-reload/python/Dockerfile @@ -2,8 +2,7 @@ FROM python:3.7.4-alpine3.10 CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"] ENV FLASK_DEBUG=1 ENV FLASK_APP=app.py - +WORKDIR /usr/src/app COPY requirements.txt . -RUN pip install -r requirements.txt -COPY src ./ - +RUN chown -R 400:400 /usr/src/app && pip install -r requirements.txt +COPY src ./ \ No newline at end of file