File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ ENV PYTHONUNBUFFERED True
66# Setup local workdir and dependencies
77WORKDIR /app
88
9- # Install python dependencies.
9+ # Install torch for CPU only, since the model runs faster on CPU, and this results in and smaller docker image
10+ RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
11+ # TODO: use executorch https://docs.pytorch.org/executorch/stable/getting-started.html for even smaller image size
12+
13+ # Install other python dependencies.
1014ADD ./pyproject.toml ./pyproject.toml
11- RUN mkdir -p sign_language_segmentation/src/utils
12- RUN touch README.md
15+ RUN mkdir -p sign_language_segmentation/src/utils && touch README.md
1316RUN pip install --no-cache-dir ".[server]"
1417
1518# Copy local code to the container image.
You can’t perform that action at this time.
0 commit comments