Skip to content

Commit 8892284

Browse files
committed
Fix cuda images
1 parent 603489a commit 8892284

File tree

5 files changed

+492
-16
lines changed

5 files changed

+492
-16
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN pip install --upgrade pip && \
66
poetry config virtualenvs.in-project true
77

88
COPY pyproject.toml poetry.lock /app/
9-
RUN poetry install --no-ansi --with=cuda
9+
RUN poetry install --no-ansi --with cuda -E cuda
1010

1111
FROM python:3.11-slim-bookworm
1212
WORKDIR /app

Dockerfile.cpu

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN pip install --upgrade pip && \
66
poetry config virtualenvs.in-project true
77

88
COPY pyproject.toml poetry.lock /app/
9-
RUN poetry install --no-ansi --with=cpu
9+
RUN poetry install --no-ansi --sync
1010

1111
FROM python:3.11-slim-bookworm
1212
WORKDIR /app

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ project. Follow their installation instructions if you do not have it.
6161
6262
```bash
6363
# Install the dependencies
64-
poetry install --with=<cuda or cpu>
64+
poetry install
65+
# OR
66+
poetry install --with cuda -E cuda
67+
68+
6569

6670
# Activate the shell
6771
poetry shell

0 commit comments

Comments
 (0)