ci: 修改默认pip安装包路径,使用data目录并去掉volume
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
CaptainB 2024-08-13 12:26:57 +08:00 committed by liqiang-fit2cloud
parent 3e2e5ec680
commit 6c0d28b4a5

View File

@ -52,7 +52,7 @@ 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/python-packages
ENV PYTHONPATH $PIP_TARGET:$PYTHONPATH
RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
@ -60,8 +60,6 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
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"]