Skip to content

Commit

Permalink
pass the docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
NGB Office GPGPU Workstation#01 committed Jul 5, 2023
1 parent 39b52c0 commit ccb5243
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt update && \
ENV RYE_HOME="/opt/rye"
ENV PATH="$RYE_HOME/shims:$PATH"

RUN curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
RUN curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash

WORKDIR /src

Expand All @@ -22,10 +22,13 @@ SHELL [ "bash", "-c" ]

RUN rye sync --no-dev --no-lock

FROM base
FROM base

WORKDIR /src
# put the model file in here
VOLUME [ "/yuren-7b" ]
VOLUME [ "/pleisto/yuren-7b" ]

ENTRYPOINT [ "rye","run" ,"webui" ,"/yuren-7b"]
# Expose for web service
EXPOSE 7860

ENTRYPOINT [ "rye","run" ,"webui" ,"/pleisto/yuren-7b"]

0 comments on commit ccb5243

Please sign in to comment.