From cae3d2cc04103cc8e86bfabad9a4d35330646071 Mon Sep 17 00:00:00 2001 From: Prema Soundararajan <prema@uab.edu> Date: Wed, 30 Oct 2024 19:53:40 +0000 Subject: [PATCH] add Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5c9a3c9 --- /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"] -- GitLab