-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: simplified docker build within pypi size limits with pip build an…
…d renamed accidentally commited backup file
- Loading branch information
1 parent
dd2286b
commit cfcb581
Showing
6 changed files
with
74 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:22.04 | ||
|
||
LABEL vendor="MBARI" | ||
LABEL maintainer="[email protected]" | ||
LABEL license="Apache License 2.0" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
software-properties-common \ | ||
&& apt-get update && apt-get install -y \ | ||
python3.11 \ | ||
python3.11-dev \ | ||
python3.11-distutils \ | ||
python3-pip \ | ||
curl \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG GIT_VERSION=latest | ||
ARG IMAGE_URI=mbari/sdcat:${GIT_VERSION} | ||
|
||
ENV APP_HOME=/app | ||
ENV PYTHONPATH=${APP_HOME}/sdcat | ||
ENV HF_HOME=/tmp/transformers_cache | ||
WORKDIR ${APP_HOME} | ||
RUN if [ "$GIT_VERSION" != "latest" ]; then \ | ||
python3.11 -m pip install sdcat:${GIT_VERSION}; \ | ||
else \ | ||
python3.11 -m pip install sdcat; \ | ||
fi | ||
|
||
ENTRYPOINT ["sdcat"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 | ||
|
||
LABEL vendor="MBARI" | ||
LABEL maintainer="[email protected]" | ||
LABEL license="Apache License 2.0" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
wget \ | ||
curl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG GIT_VERSION=latest | ||
ARG IMAGE_URI=mbari/sdcat:${GIT_VERSION} | ||
|
||
ENV APP_HOME=/app | ||
ENV PYTHONPATH=${APP_HOME}/sdcat | ||
ENV HF_HOME=/tmp/transformers_cache | ||
WORKDIR ${APP_HOME} | ||
RUN if [ "$GIT_VERSION" != "latest" ]; then \ | ||
python3 -m pip install sdcat:${GIT_VERSION}; \ | ||
else \ | ||
python3 -m pip install sdcat; \ | ||
fi | ||
|
||
RUN chmod a+rwx ${APP_HOME} | ||
ENV HOME=${APP_HOME} | ||
ENV NUMBA_CACHE_DIR=/tmp | ||
WORKDIR ${APP_HOME} | ||
RUN python3 -m pip install --upgrade pip && \ | ||
python3 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 | ||
ENTRYPOINT ["sdcat"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters