Skip to content

Commit b1e8ca5

Browse files
committed
chore(devcontainer): chown home dir after pip install
1 parent 2a00cf5 commit b1e8ca5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
66
PYTHONUNBUFFERED=1 \
77
USER=compiler
88

9-
RUN useradd --create-home --shell /bin/bash $USER && \
10-
chown -R $USER /home/$USER
9+
RUN useradd --create-home --shell /bin/bash $USER
1110

1211
USER $USER
1312
ENV PATH "$PATH:/home/$USER/.local/bin"
@@ -20,4 +19,8 @@ COPY compiler_admin compiler_admin
2019
COPY pyproject.toml pyproject.toml
2120
RUN pip install -e .[dev,test]
2221

22+
USER root
23+
RUN chown -R $USER /home/$USER
24+
USER $USER
25+
2326
CMD ["sleep", "infinity"]

0 commit comments

Comments
 (0)