Skip to content

Commit

Permalink
fix: tox config file as in sub directory correcting WORKDIR
Browse files Browse the repository at this point in the history
Signed-off-by: saikiran <neo2603@gmail.com>
  • Loading branch information
saikiran2603 authored and alexellis committed Apr 6, 2021
1 parent cdb82b4 commit 12db680
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
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

0 comments on commit 12db680

Please sign in to comment.