Skip to content

Commit 8e41419

Browse files
committed
Add chown
1 parent f7917e9 commit 8e41419

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile.dev

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1+
FROM python:3
2+
13
# This will be set by the GitHub action to the folder containing this component.
24
ARG FOLDER=/app
35

4-
FROM python:3
5-
6-
COPY . /app
6+
COPY --chown=1000:1000 . /app
77
WORKDIR ${FOLDER}
88

99
USER 1000:1000
1010

1111
# Setup venv
12-
ARG FOLDER
1312
ENV VIRTUAL_ENV_FOLDER $FOLDER
1413
RUN python -m venv "$VIRTUAL_ENV_FOLDER/.venv"
1514
ENV PATH="$VIRTUAL_ENV_FOLDER/.venv/bin:$PATH"

0 commit comments

Comments
 (0)