Skip to content

Commit d26e341

Browse files
authored
allow pip install in container
1 parent b6e9b0d commit d26e341

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ LABEL description="Docker Container with a complete build environment for Tasmot
88
# Disable pip root user warning
99
ENV PIP_ROOT_USER_ACTION=ignore
1010

11-
# Install platformio.
11+
# Install platformio
1212
RUN pip install --upgrade pip &&\
1313
pip install --upgrade platformio
1414

15+
# global pip configuration
16+
RUN mkdir -p /etc/pip && \
17+
echo "[global]" > /etc/pip/pip.conf && \
18+
echo "root-user-action = ignore" >> /etc/pip/pip.conf && \
19+
echo "no-warn-script-location = true" >> /etc/pip/pip.conf
20+
1521
# Init project
1622
COPY init_pio_tasmota /init_pio_tasmota
1723

@@ -24,7 +30,8 @@ RUN cd /init_pio_tasmota &&\
2430
rm -fr init_pio_tasmota &&\
2531
cp -r /root/.platformio / &&\
2632
mkdir /.cache /.local &&\
27-
chmod -R 777 /.platformio /usr/local/lib /usr/local/bin /.cache /.local
33+
chmod -R 777 /.platformio /usr/local/lib /usr/local/bin /.cache /.local &&\
34+
chmod -R 777 /usr/local/lib/python*/site-packages/
2835

2936
COPY entrypoint.sh /entrypoint.sh
3037

0 commit comments

Comments
 (0)