Skip to content

Commit f15a0d1

Browse files
committed
tf purge aussi python3-pip to remove size
1 parent f87ae32 commit f15a0d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apt-get -y update;\
2525
$ENV_DIR/bin/pip install --no-cache-dir tflite-runtime==$TFLITE_VERSION;\
2626
$ENV_DIR/bin/pip install --no-cache-dir PyFina==$PYFINA_VERSION;\
2727
$ENV_DIR/bin/pip install --no-cache-dir aiohttp;\
28-
apt-get purge -y --auto-remove python3-dev;\
28+
apt-get purge -y --auto-remove python3-pip python3-venv python3-dev;\
2929
apt-get clean
3030

3131
ENV \

tf_armv7/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ RUN apt-get -y update;\
1414
apt-get -y upgrade;\
1515
apt-get install -y tzdata;\
1616
apt-get install -y wget curl nano;\
17-
apt-get -y install python3 python3-pip;\
18-
apt-get -y install swig libjpeg-dev zlib1g-dev python3-dev python3-venv python-is-python3 unzip git cmake make;\
17+
apt-get -y install python3 python3-pip python3-dev python3-venv;\
18+
apt-get -y install swig libjpeg-dev zlib1g-dev python-is-python3 unzip git cmake make;\
1919
python3 -m venv $ENV_DIR;\
2020
$ENV_DIR/bin/pip install --no-cache-dir pip --upgrade;\
2121
$ENV_DIR/bin/pip install --no-cache-dir pyserial pymodbus==$PYMODBUS_VERSION;\
@@ -26,7 +26,8 @@ RUN apt-get -y update;\
2626
$ENV_DIR/bin/pip install --no-cache-dir tflite-runtime==$TFLITE_VERSION;\
2727
$ENV_DIR/bin/pip install --no-cache-dir PyFina==$PYFINA_VERSION;\
2828
$ENV_DIR/bin/pip install --no-cache-dir aiohttp;\
29-
apt-get purge -y --auto-remove swig libjpeg-dev zlib1g-dev python3-dev python-is-python3 unzip git cmake make;\
29+
apt-get purge -y --auto-remove python3-pip python3-dev python3-venv;\
30+
apt-get purge -y --auto-remove swig libjpeg-dev zlib1g-dev python-is-python3 unzip git cmake make;\
3031
apt-get clean
3132

3233
ENV \

0 commit comments

Comments
 (0)