Skip to content

Commit 32d2104

Browse files
committed
fix(devcontainer): create mapped config dirs in image
1 parent 11af94d commit 32d2104

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
99
RUN useradd --create-home --shell /bin/bash $USER
1010

1111
USER $USER
12-
ENV PATH "$PATH:/home/$USER/.local/bin"
13-
WORKDIR /home/$USER/admin
12+
ENV PATH="$PATH:/home/$USER/.local/bin"
13+
RUN mkdir -p /home/$USER/.config/compiler-admin
14+
WORKDIR /home/$USER/compiler-admin
1415

1516
RUN python -m pip install --upgrade pip
1617

@@ -20,7 +21,7 @@ COPY pyproject.toml pyproject.toml
2021
RUN pip install -e .[dev,test]
2122

2223
USER root
23-
RUN chown -R $USER /home/$USER
24+
RUN chown -R $USER:$USER /home/$USER
2425
USER $USER
2526

2627
CMD ["sleep", "infinity"]

0 commit comments

Comments
 (0)