Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions template/python3-flask-armhf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ WORKDIR /home/app/function/
COPY function/requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /home/app/

USER root
COPY function function
RUN chown -R app:app ./
COPY function/ .
RUN chown -R app:app ../

ARG TEST_COMMAND=tox
ARG TEST_ENABLED=true
Expand All @@ -44,6 +42,8 @@ RUN if [ "$TEST_ENABLED" == "false" ]; then \
eval "$TEST_COMMAND"; \
fi

WORKDIR /home/app/

USER app

ENV fprocess="python index.py"
Expand Down
8 changes: 4 additions & 4 deletions template/python3-flask-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ WORKDIR /home/app/function/
COPY function/requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /home/app/

#install function code
USER root

COPY function function
RUN chown -R app:app ./
COPY function/ .
RUN chown -R app:app ../

ARG TEST_COMMAND=tox
ARG TEST_ENABLED=true
Expand All @@ -50,6 +48,8 @@ RUN if [ "$TEST_ENABLED" == "false" ]; then \
eval "$TEST_COMMAND"; \
fi

WORKDIR /home/app/

#configure WSGI server and healthcheck
USER app

Expand Down
8 changes: 4 additions & 4 deletions template/python3-http-armhf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ WORKDIR /home/app/function/
COPY function/requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /home/app/

USER root
COPY function function
RUN chown -R app:app ./
COPY function/ .
RUN chown -R app:app ../

ARG TEST_COMMAND=tox
ARG TEST_ENABLED=true
Expand All @@ -42,6 +40,8 @@ RUN if [ "$TEST_ENABLED" == "false" ]; then \
eval "$TEST_COMMAND"; \
fi

WORKDIR /home/app/

USER app

# Set up of-watchdog for HTTP mode
Expand Down
8 changes: 4 additions & 4 deletions template/python3-http-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ WORKDIR /home/app/function/
COPY function/requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /home/app/

USER root
COPY function function
RUN chown -R app:app ./
COPY function/ .
RUN chown -R app:app ../

ARG TEST_COMMAND=tox
ARG TEST_ENABLED=true
Expand All @@ -45,6 +43,8 @@ RUN if [ "$TEST_ENABLED" == "false" ]; then \
eval "$TEST_COMMAND"; \
fi

WORKDIR /home/app/

USER app

# Set up of-watchdog for HTTP mode
Expand Down
8 changes: 4 additions & 4 deletions template/python3-http/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ WORKDIR /home/app/function/
COPY function/requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /home/app/

#install function code
USER root
COPY function function
RUN chown -R app:app ./
COPY function/ .
RUN chown -R app:app ../

ARG TEST_COMMAND=tox
ARG TEST_ENABLED=true
Expand All @@ -48,6 +46,8 @@ RUN if [ "$TEST_ENABLED" == "false" ]; then \
eval "$TEST_COMMAND"; \
fi

WORKDIR /home/app/

#configure WSGI server and healthcheck
USER app

Expand Down