Skip to content

Commit

Permalink
Change base image to smaller version (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgesLorre authored Aug 1, 2023
1 parent f1ce3d3 commit 4161b19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/segment_images/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
FROM --platform=linux/amd64 pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime

# System dependencies
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion docs/custom_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ which is then imported in the `main.py` script.
The `Dockerfile` defines how to build the component into a Docker image. An example Dockerfile is defined below.

```bash
FROM --platform=linux/amd64 pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
FROM --platform=linux/amd64 pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime

## System dependencies
RUN apt-get update && \
Expand Down
3 changes: 0 additions & 3 deletions scripts/build_components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ for dir in "${components_to_build[@]}"; do
--label org.opencontainers.image.source=https://github.com/${namespace}/${repo} \
.

# remove local image to conserve space
docker rmi -f "${full_image_names[@]}"

popd

done

0 comments on commit 4161b19

Please sign in to comment.