We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7917e9 commit 8e41419Copy full SHA for 8e41419
1 file changed
Dockerfile.dev
@@ -1,15 +1,14 @@
1
+FROM python:3
2
+
3
# This will be set by the GitHub action to the folder containing this component.
4
ARG FOLDER=/app
5
-FROM python:3
-
6
-COPY . /app
+COPY --chown=1000:1000 . /app
7
WORKDIR ${FOLDER}
8
9
USER 1000:1000
10
11
# Setup venv
12
-ARG FOLDER
13
ENV VIRTUAL_ENV_FOLDER $FOLDER
14
RUN python -m venv "$VIRTUAL_ENV_FOLDER/.venv"
15
ENV PATH="$VIRTUAL_ENV_FOLDER/.venv/bin:$PATH"
0 commit comments