Skip to content

Commit

Permalink
Fix cuda images
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarLiew committed Dec 16, 2024
1 parent 603489a commit 8892284
Show file tree
Hide file tree
Showing 5 changed files with 492 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN pip install --upgrade pip && \
poetry config virtualenvs.in-project true

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

FROM python:3.11-slim-bookworm
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN pip install --upgrade pip && \
poetry config virtualenvs.in-project true

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

FROM python:3.11-slim-bookworm
WORKDIR /app
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ project. Follow their installation instructions if you do not have it.
```bash
# Install the dependencies
poetry install --with=<cuda or cpu>
poetry install
# OR
poetry install --with cuda -E cuda



# Activate the shell
poetry shell
Expand Down
Loading

0 comments on commit 8892284

Please sign in to comment.