Skip to content

Commit

Permalink
riotdocker-base: create riot venv
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Feb 6, 2024
1 parent f4b79f4 commit c81eecf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions riotdocker-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ RUN \
apt-get -y --no-install-recommends install \
gcc \
git \
python3 \
python3-dev \
python3-pip \
python3-full \
&& \
echo 'Clean up installation files' >&2 && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# create python environment that allows "pip install" despite PEP 668
RUN python3 -m venv /local/python-riot
ENV PATH="/local/python-riot/bin:$PATH"

# compile suid create_user binary
COPY create_user.c /tmp/create_user.c
RUN gcc -DHOMEDIR=\"/data/riotbuild\" -DUSERNAME=\"riotbuild\" /tmp/create_user.c -o /usr/local/bin/create_user \
Expand Down

0 comments on commit c81eecf

Please sign in to comment.