Skip to content

Commit 9b603b1

Browse files
committed
specify pyproject 3.7 for docker
1 parent 542106f commit 9b603b1

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

docker/Dockerfile-full

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@ RUN pip install --upgrade pip
3535
# Install deepethogram with dev dependencies
3636
ADD . /app/deepethogram
3737
WORKDIR /app/deepethogram
38+
# Use Python 3.7 compatible pyproject.toml
39+
RUN cp pyproject_py37.toml pyproject.toml
3840
ENV DEG_VERSION='full'
3941
RUN pip install -e ".[dev]"

docker/Dockerfile-gui

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ RUN conda install python=3.7 -y
3838
RUN pip install --upgrade pip
3939

4040
# TODO: REFACTOR CODE SO IT'S POSSIBLE TO RUN GUI WITHOUT TORCH
41-
RUN conda install pytorch cpuonly -c pytorch
41+
# Install PyTorch CPU via pip to avoid conda issues with Python 3.7
42+
RUN pip install torch==1.11.0+cpu torchvision==0.12.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
4243

4344
# Install deepethogram with dev dependencies
4445
ADD . /app/deepethogram
4546
WORKDIR /app/deepethogram
47+
# Use Python 3.7 compatible pyproject.toml
48+
RUN cp pyproject_py37.toml pyproject.toml
4649
ENV DEG_VERSION='gui'
4750
RUN pip install -e ".[dev]"

docker/Dockerfile-headless

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ RUN pip install --upgrade pip
3939
# Install deepethogram with dev dependencies
4040
ADD . /app/deepethogram
4141
WORKDIR /app/deepethogram
42+
# Use Python 3.7 compatible pyproject.toml
43+
RUN cp pyproject_py37.toml pyproject.toml
4244
ENV DEG_VERSION='headless'
4345
RUN pip install -e ".[dev]"

0 commit comments

Comments
 (0)