Skip to content

Commit

Permalink
ci: 修改默认pip安装包路径,使用data目录并去掉volume
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Aug 13, 2024
1 parent 3e2e5ec commit 31facfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions installer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,14 @@ ENV LANG=en_US.UTF-8 \

ENV POSTGRES_USER root
ENV POSTGRES_PASSWORD Password123@postgres
ENV PIP_TARGET /opt/maxkb/site-packages
ENV PIP_TARGET /var/lib/postgresql/data/site-packages
ENV PYTHONPATH $PIP_TARGET:$PYTHONPATH

RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
cp -r /opt/maxkb/model/base/hub /opt/maxkb/model/tokenizer && \
cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d

VOLUME [ "$PIP_TARGET" ]

EXPOSE 8080

ENTRYPOINT ["bash", "-c"]
Expand Down

0 comments on commit 31facfa

Please sign in to comment.