diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..5c9a3c91eddf89215ee03ab09de1ed130793846e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Use an official Python runtime as a parent image +FROM python:3.8-slim + +# Set the working directory in the container +WORKDIR /app + +# Install git +RUN apt-get update && apt-get install -y git + +# Clone the DeepLabCut repository +RUN git clone https://github.com/DeepLabCut/DeepLabCut.git + +# Change the working directory to DeepLabCut +WORKDIR /app/DeepLabCut + +# Create a virtual environment and activate it +RUN python3 -m venv venv + +# Install dependencies +RUN /bin/bash -c "source venv/bin/activate && pip install -r requirements.txt && pip install .[gui]" + +# Set the entrypoint to bash +ENTRYPOINT ["/bin/bash"]