Skip to content

Commit 39345fe

Browse files
authored
Merge pull request #537 from sillsdev/#386_non_cuda_image
Use non-CUDA Ubuntu Docker image
2 parents 73b7dce + 53ecaec commit 39345fe

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
ARG CUDA_VERSION=12.1.1-cudnn8-runtime-ubuntu20.04
21
ARG PYTHON_VERSION=3.8
32
ARG POETRY_VERSION=1.7.1
4-
FROM nvidia/cuda:$CUDA_VERSION
3+
FROM ubuntu:20.04
54
ARG PYTHON_VERSION
65
ARG POETRY_VERSION
76
WORKDIR /app

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
ARG CUDA_VERSION=12.1.1-cudnn8-runtime-ubuntu20.04
21
ARG PYTHON_VERSION=3.8
32
ARG POETRY_VERSION=1.7.1
43

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

26-
FROM nvidia/cuda:$CUDA_VERSION
25+
FROM ubuntu:20.04
2726

2827
ARG PYTHON_VERSION=3.8
2928

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

5958
# Install dependencies from poetry
6059
COPY --from=builder /src/requirements.txt .
61-
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
60+
RUN pip install -r requirements.txt && rm requirements.txt
6261

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

0 commit comments

Comments
 (0)