<reponame>WillianFuks/pySearchML<filename>kubeflow/components/model/Dockerfile<gh_stars>10-100
FROM openjdk:8 as java
COPY --from=python:3.7.7-slim / /

COPY kubeflow/components/model /model
COPY kubeflow/components/common/launch_crd.py /model/launch_crd.py
WORKDIR /model
COPY ./key.json .

ARG PROJECT_ID

ENV GOOGLE_APPLICATION_CREDENTIALS=key.json \
    PROJECT_ID=$PROJECT_ID

RUN pip install -r requirements.txt

ENTRYPOINT ["sh", "-c"]
