Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use non-CUDA Ubuntu Docker image #537

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ARG CUDA_VERSION=12.1.1-cudnn8-runtime-ubuntu20.04
ARG PYTHON_VERSION=3.8
ARG POETRY_VERSION=1.7.1
FROM nvidia/cuda:$CUDA_VERSION
FROM ubuntu:20.04
ARG PYTHON_VERSION
ARG POETRY_VERSION
WORKDIR /app
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ARG CUDA_VERSION=12.1.1-cudnn8-runtime-ubuntu20.04
ARG PYTHON_VERSION=3.8
ARG POETRY_VERSION=1.7.1

Expand All @@ -23,7 +22,7 @@ RUN poetry export -E eflomal --without-hashes -f requirements.txt > requirements
COPY . /src
RUN poetry build

FROM nvidia/cuda:$CUDA_VERSION
FROM ubuntu:20.04

ARG PYTHON_VERSION=3.8

Expand Down Expand Up @@ -58,7 +57,7 @@ RUN ln -sfn /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 & \

# Install dependencies from poetry
COPY --from=builder /src/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
RUN pip install -r requirements.txt && rm requirements.txt

# Set eflomal path
ENV EFLOMAL_PATH=/usr/local/lib/python3.8/dist-packages/eflomal/bin
Expand Down