File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,22 @@ ENV PATH="/root/.local/bin:${PATH}"
1010
1111
1212RUN apt-get update && apt-get install -y \
13- ca-certificates python3 python3-pip libgl1-mesa-dev libglib2.0-0 libsm6 libxrender1 libxext6 nano vim htop && \
13+ 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
20+ RUN python -m venv ${VIRTUAL_ENV}
21+ ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
22+
1923RUN apt-get install -y build-essential && \
20- pip install --no-cache-dir shapely && \
21- pip install --no-cache-dir ${PIP_FLAGS} superannotate && \
22- apt-get remove -y build-essential && \
23- apt-get -y autoremove && \
24- rm -rf /root/.cache/pip && \
25- rm -rf /var/lib/apt/lists/*
24+ pip install --no-cache-dir shapely && \
25+ pip install --no-cache-dir ${PIP_FLAGS} superannotate && \
26+ apt-get remove -y build-essential && \
27+ apt-get -y autoremove && \
28+ rm -rf /root/.cache/pip && \
29+ rm -rf /var/lib/apt/lists/*
2630
2731CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments