mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-07-17 08:53:39 +00:00
parent
f73a36af2f
commit
bfe9c1fdb7
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Ensure correct ownership of the local_data directory
|
|
||||||
chown -R worker /home/worker/app/local_data
|
|
||||||
|
|
||||||
# Ensure correct ownership of the models directory if it exists
|
|
||||||
if [ -d "/home/worker/app/models" ]; then
|
|
||||||
chown -R worker /home/worker/app/models
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Execute the command passed to the entrypoint
|
|
||||||
exec "$@"
|
|
@ -60,11 +60,5 @@ COPY --chown=worker private_gpt/ private_gpt
|
|||||||
COPY --chown=worker *.yaml .
|
COPY --chown=worker *.yaml .
|
||||||
COPY --chown=worker scripts/ scripts
|
COPY --chown=worker scripts/ scripts
|
||||||
|
|
||||||
# Copy the entrypoint script and set correct permissions
|
|
||||||
COPY ./.docker/entrypoint.sh /entrypoint.sh
|
|
||||||
RUN chown worker /entrypoint.sh && \
|
|
||||||
chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
USER worker
|
USER worker
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT python -m private_gpt
|
||||||
CMD ["python", "-m", "private_gpt"]
|
|
@ -47,11 +47,5 @@ COPY --chown=worker private_gpt/ private_gpt
|
|||||||
COPY --chown=worker *.yaml .
|
COPY --chown=worker *.yaml .
|
||||||
COPY --chown=worker scripts/ scripts
|
COPY --chown=worker scripts/ scripts
|
||||||
|
|
||||||
# Copy the entrypoint script and set correct permissions
|
|
||||||
COPY ./.docker/entrypoint.sh /entrypoint.sh
|
|
||||||
RUN chown worker /entrypoint.sh && \
|
|
||||||
chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
USER worker
|
USER worker
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT python -m private_gpt
|
||||||
CMD ["python", "-m", "private_gpt"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user