Skip to content

Commit

Permalink
update Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
freeliuzc committed May 24, 2022
1 parent 3890d16 commit afd20cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tekton/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ WORKDIR /home/${PADDLE_TOOLKIT}
RUN pip3.7 install -r requirements.txt
RUN python3.7 setup.py install

CMD ["sleep", "infinity"]
# CMD ["sleep", "infinity"]
CMD ["jupyter lab", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--notebook-dir=/home"]
9 changes: 8 additions & 1 deletion tekton/dockerfiles/Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ ARG IMAGE_TAG=latest-dev-rocm4.0-miopen2.11
ARG PADDLE_TOOLKIT=PaddleOCR
FROM paddlepaddle/paddle:${IMAGE_TAG}

# add tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

ARG PADDLE_TOOLKIT
COPY ${PADDLE_TOOLKIT} ./${PADDLE_TOOLKIT}

Expand All @@ -17,4 +23,5 @@ WORKDIR /opt/${PADDLE_TOOLKIT}
RUN pip install -r requirements.txt
RUN python setup.py install

CMD ["sleep", "infinity"]
# CMD ["sleep", "infinity"]
CMD ["jupyter lab", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--notebook-dir=/home"]

0 comments on commit afd20cc

Please sign in to comment.