File tree Expand file tree Collapse file tree 2 files changed +4
-26
lines changed
Expand file tree Collapse file tree 2 files changed +4
-26
lines changed Original file line number Diff line number Diff line change 4242 run : |
4343 export GIT_TAG=${GITHUB_REF##*/}
4444 cicd/docker_push.sh || exit 1
45- build-custom-image :
46- name : Build custom image
47- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
48- runs-on : ubuntu-latest
49- env :
50- LOCAL_REPO : img2vec-pytorch
51- REMOTE_REPO : semitechnologies/img2vec-pytorch
52- steps :
53- - uses : actions/checkout@v3
54- - uses : actions/setup-python@v4
55- with :
56- python-version : " 3.11"
57- - name : Login to Docker Hub
58- uses : docker/login-action@v2
59- with :
60- username : ${{secrets.DOCKER_USERNAME}}
61- password : ${{secrets.DOCKER_PASSWORD}}
62- - name : Deploy
63- env :
64- DOCKER_USERNAME : ${{secrets.DOCKER_USERNAME}}
65- DOCKER_PASSWORD : ${{secrets.DOCKER_PASSWORD}}
66- run : |
67- export GIT_TAG=${GITHUB_REF##*/}
68- cicd/build_custom_base.sh || exit 1
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ FROM python:3.11-slim
22
33WORKDIR /app
44
5+ RUN apt-get update
6+ RUN pip install --upgrade pip setuptools
7+
58COPY requirements.txt .
6- RUN apt-get update && apt-get upgrade && apt-get -y install curl build-essential && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && pip3 install -r requirements.txt && apt remove -y curl build-essential && apt -y autoremove
7- ENV PATH="$PATH:/root/.cargo/bin"
9+ RUN pip3 install -r requirements.txt
810
911ARG MODEL_NAME
1012COPY download_model.py .
You can’t perform that action at this time.
0 commit comments