Skip to content

Commit 2760917

Browse files
authored
Merge pull request #9 from weaviate/remove-custom-dockerfile-step
Remove custom Dockerfile build step
2 parents 3085777 + 075a9ad commit 2760917

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,3 @@ jobs:
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

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ FROM python:3.11-slim
22

33
WORKDIR /app
44

5+
RUN apt-get update
6+
RUN pip install --upgrade pip setuptools
7+
58
COPY 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

911
ARG MODEL_NAME
1012
COPY download_model.py .

0 commit comments

Comments
 (0)