better debug

This commit is contained in:
Simon 2023-07-28 14:39:34 +07:00
parent 88c35e57cf
commit 8ffd2cc7ac
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -1,11 +1,12 @@
FROM python:3.11.3-slim-bullseye
ARG INSTALL_DEBUG
ENV PYTHONUNBUFFERED 1
ENV PATH=/root/.local/bin:$PATH
# install debug tools for testing environment
RUN if [ "$INSTALL_DEBUG" ] ; then \
apt-get -y update && apt-get -y install --no-install-recommends \
vim htop bmon net-tools iputils-ping procps \
vim htop bmon net-tools iputils-ping procps curl \
&& pip install --user ipython \
; fi