Skip to content

Commit 690807f

Browse files
author
Beat Buesser
committed
Optimize Dockerfile and add version to tags
Signed-off-by: Beat Buesser <[email protected]>
1 parent e0e27dc commit 690807f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/dockerhub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
images: adversarialrobustnesstoolbox/releases
3737
tags: |
38-
type=sha
38+
type=sha,pattern={{branch}}-{{version}}-{{sha}}
3939
type=semver,pattern={{version}}
4040
4141
- name: Build and push Docker image

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ RUN apt-get update -y
44
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
55
RUN apt-get install -y python3 python3-distutils python3-pip
66

7-
RUN pip3 install adversarial-robustness-toolbox==1.11.0
8-
97
RUN pip3 install tensorflow==2.9.1 keras==2.9.0 numpy==1.22.4 scipy==1.8.1 matplotlib==3.5.2 scikit-learn==1.1.2 \
108
six==1.15.0 Pillow==9.2.0 pytest-cov==3.0.0 tqdm==4.64.0 statsmodels==0.13.2 pydub==0.25.1 \
119
resampy==0.3.1 ffmpeg-python==0.2.0 cma==3.2.2 pandas==1.4.3 h5py==3.7.0 tensorflow-addons==0.17.1 \
1210
mxnet==1.6.0 torch==1.12.0 torchaudio==0.12.0 torchvision==0.13.0 catboost==1.0.6 GPy==1.10.0 \
1311
lightgbm==3.3.2 xgboost==1.6.1 kornia==0.6.6 lief==0.12.1 pytest==7.1.2 pytest-pep8==1.0.6 \
1412
pytest-mock==3.8.2 codecov==2.1.12 requests==2.28.1
1513

16-
RUN apt-get -y -q install ffmpeg libavcodec-extra
14+
RUN apt-get -y install ffmpeg libavcodec-extra vim git
15+
16+
RUN mkdir /project
17+
WORKDIR /project
18+
ADD . /project
19+
RUN pip3 install .
1720

1821
RUN echo "You should think about possibly upgrading these outdated packages"
1922
RUN pip3 list --outdated
2023

2124
# NOTE to contributors: When changing/adding packages, please make sure that the packages are consistent with those
22-
# present within the requirements_test.txt files
25+
# present within the requirements_test.txt files

0 commit comments

Comments
 (0)