Skip to content

Commit

Permalink
Merge pull request #537 from sillsdev/#386_non_cuda_image
Browse files Browse the repository at this point in the history
Use non-CUDA Ubuntu Docker image
  • Loading branch information
mshannon-sil authored Sep 30, 2024
2 parents 73b7dce + 53ecaec commit 39345fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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

0 comments on commit 39345fe

Please sign in to comment.