-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from duggalsu/docker_opt
Create and optimize Dockerfiles
- Loading branch information
Showing
17 changed files
with
116 additions
and
179 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
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,17 @@ | ||
FROM python:3.11-slim@sha256:637774748f62b832dc11e7b286e48cd716727ed04b45a0322776c01bc526afc3 AS base | ||
RUN apt-get update \ | ||
&& apt-get -y upgrade \ | ||
&& apt-get install -y \ | ||
--no-install-recommends gcc build-essential \ | ||
--no-install-recommends libgl1-mesa-glx libglib2.0-0 \ | ||
&& apt-get purge -y --auto-remove \ | ||
gcc build-essential \ | ||
libgl1-mesa-glx libglib2.0-0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV PATH=/root/.local/bin:$PATH | ||
RUN pip install --no-cache-dir --upgrade pip | ||
WORKDIR /app | ||
COPY ./core/operators/image_vec_rep_resnet_requirements.txt /app/requirements.txt | ||
RUN pip install --no-cache-dir --user -r requirements.txt | ||
COPY . /app | ||
CMD tail -f /dev/null |
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,17 @@ | ||
FROM python:3.11-slim@sha256:637774748f62b832dc11e7b286e48cd716727ed04b45a0322776c01bc526afc3 AS base | ||
RUN apt-get update \ | ||
&& apt-get -y upgrade \ | ||
&& apt-get install -y \ | ||
--no-install-recommends gcc build-essential \ | ||
--no-install-recommends libgl1-mesa-glx libglib2.0-0 \ | ||
&& apt-get purge -y --auto-remove \ | ||
gcc build-essential \ | ||
libgl1-mesa-glx libglib2.0-0 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV PATH=/root/.local/bin:$PATH | ||
RUN pip install --no-cache-dir --upgrade pip | ||
WORKDIR /app | ||
COPY ./core/operators/vid_vec_rep_resnet_requirements.txt /app/requirements.txt | ||
RUN pip install --no-cache-dir --user -r requirements.txt | ||
COPY . /app | ||
CMD tail -f /dev/null |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
google-cloud==0.34.0 | ||
google-cloud-vision==3.5.0 | ||
boto3==1.34.19 | ||
boto3==1.34.34 |
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pytest==7.4.4 | ||
nltk==3.8.1 | ||
textblob==0.17.1 | ||
torch==2.1.2+cpu | ||
torchvision==0.16.2+cpu | ||
numpy==1.26.3 | ||
Pillow==10.2.0 # dev |
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
2 changes: 1 addition & 1 deletion
2
src/api/core/operators/text_vec_rep_paraphrase_lxml_requirements.in
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
numpy==1.26.3 | ||
nltk==3.6.6 | ||
nltk==3.8.1 | ||
scikit-learn==1.3.2 | ||
scipy==1.11.4 | ||
sentence-transformers==2.2.2 | ||
|
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
torch==2.1.2+cpu | ||
torchvision==0.16.2+cpu | ||
numpy==1.26.3 | ||
wget==3.2 | ||
Pillow==10.2.0 | ||
scipy==1.11.4 | ||
opencv-python-headless==4.9.0.80 |
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
Oops, something went wrong.