@@ -6,26 +6,29 @@ ARG PIP_FLAGS
66SHELL ["/bin/bash" , "-c" ]
77
88ENV DEBIAN_FRONTEND noninteractive
9- ENV PATH="/root/.local/bin:${PATH}"
9+ ENV HOME /root
10+ WORKDIR $HOME
1011
11-
12- RUN apt-get update && apt-get install -y \
12+ RUN apt-get update && apt-get install -y --no-install-recommends \
1313 ca-certificates python3 python3-pip python3-venv libgl1-mesa-dev libglib2.0-0 libsm6 libxrender1 libxext6 nano vim htop && \
1414 rm -rf /var/lib/apt/lists/*
1515
1616RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
1717RUN update-alternatives --install /usr/local/bin/pip pip /usr/bin/pip3 1
1818
19- ENV VIRTUAL_ENV=/tmp/superannotatesdk
19+ ENV VIRTUAL_ENV=$HOME/venv_superannotatesdk
2020RUN python -m venv ${VIRTUAL_ENV}
2121ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
2222
23- RUN apt-get install -y build-essential && \
23+ RUN apt-get update && apt-get install -y --no-install-recommends build-essential && \
2424 pip install --no-cache-dir shapely && \
2525 pip install --no-cache-dir ${PIP_FLAGS} superannotate && \
26- apt-get remove -y build-essential && \
27- apt-get -y autoremove && \
2826 rm -rf /root/.cache/pip && \
29- rm -rf /var/lib/apt/lists/*
27+ apt-get remove -y build-essential && \
28+ rm -rf /var/lib/apt/lists/* && \
29+ apt-get purge -y --auto-remove && \
30+ apt-get clean -y
31+
32+ RUN mkdir -p $HOME/.superannotate
3033
3134CMD ["/bin/bash" ]
0 commit comments