Skip to content

Instantly share code, notes, and snippets.

@otamajakusi
Created October 16, 2022 01:26
Show Gist options
  • Save otamajakusi/82b23131424cfa469c1e0d17d2148517 to your computer and use it in GitHub Desktop.
Save otamajakusi/82b23131424cfa469c1e0d17d2148517 to your computer and use it in GitHub Desktop.
[tentative] labelImg_OBB Dockerfile https://github.com/heshameraqi/labelImg_OBB
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
sudo pyqt5-dev-tools python3-pip \
libffi-dev libssl-dev zlib1g-dev liblzma-dev tk-dev \
libbz2-dev libreadline-dev libsqlite3-dev libopencv-dev \
build-essential git vim wget
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv
RUN cd ~/.pyenv/plugins/python-build && ./install.sh
RUN git clone https://github.com/heshameraqi/labelImg_OBB
WORKDIR /labelImg_OBB
ENV PYTHON_VERSION 3.8.12
ENV HOME /root
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/bin:$PATH
RUN eval "$(pyenv init --path)" && \
eval "$(pyenv init -)" && \
pyenv install $PYTHON_VERSION && \
pyenv global $PYTHON_VERSION && \
python -m pip install PyQt5 lxml numpy
RUN make qt5py3
COPY docker-entrypoint.sh .
CMD ["./docker-entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment