mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
ci: 修改默认pip安装包路径,使用data目录并去掉volume
This commit is contained in:
parent
3e2e5ec680
commit
6c0d28b4a5
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue