Skip to content

Commit

Permalink
fix(docker): fixup base runtime image
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Oct 7, 2020
1 parent 0f05495 commit 6238dd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ RUN --mount=type=cache,target=/ccache/ mkdir build && cd build && ../build.sh
RUN ./docker/get_libs.sh

# Build final Docker image
FROM ubuntu:18.04 AS runtime
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 AS runtime

ARG DEEPDETECT_ARCH=gpu

Expand Down
3 changes: 2 additions & 1 deletion docker/gpu_tensorrt.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ RUN --mount=type=cache,target=/ccache/ mkdir build && cd build && ../build.sh
RUN ./docker/get_libs.sh

# Build final Docker image
FROM ubuntu:18.04 AS runtime
FROM nvcr.io/nvidia/tensorrt:20.03-py3 AS runtime

ARG DEEPDETECT_ARCH=gpu

Expand All @@ -122,6 +122,7 @@ LABEL maintainer="[email protected]"
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
apt-get update -y && apt-get install -y \
wget \
curl \
libopenblas-base \
liblmdb0 \
libleveldb1v5 \
Expand Down
2 changes: 1 addition & 1 deletion docker/sync_gpu_dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for dest in "${!images[@]}" ; do
image=${images[$dest]}

sed \
-e "s,FROM [^ ]* AS build,FROM ${image} AS build,g" \
-e "s,FROM [^ ]*,FROM ${image},g" \
-e "s,ARG DEEPDETECT_ARCH=.*,ARG DEEPDETECT_ARCH=gpu,g" \
cpu.Dockerfile > ${dest}.Dockerfile
done

0 comments on commit 6238dd4

Please sign in to comment.