diff --git a/.docker/entrypoint.sh b/.docker/entrypoint.sh deleted file mode 100644 index 63221f69..00000000 --- a/.docker/entrypoint.sh +++ /dev/null @@ -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 "$@" \ No newline at end of file diff --git a/Dockerfile.llamacpp-cpu b/Dockerfile.llamacpp-cpu index e1eef1b0..07a2d066 100644 --- a/Dockerfile.llamacpp-cpu +++ b/Dockerfile.llamacpp-cpu @@ -60,11 +60,5 @@ COPY --chown=worker private_gpt/ private_gpt COPY --chown=worker *.yaml . 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 -ENTRYPOINT ["/entrypoint.sh"] -CMD ["python", "-m", "private_gpt"] \ No newline at end of file +ENTRYPOINT python -m private_gpt \ No newline at end of file diff --git a/Dockerfile.ollama b/Dockerfile.ollama index 61d6c08d..43076ab9 100644 --- a/Dockerfile.ollama +++ b/Dockerfile.ollama @@ -47,11 +47,5 @@ COPY --chown=worker private_gpt/ private_gpt COPY --chown=worker *.yaml . 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 -ENTRYPOINT ["/entrypoint.sh"] -CMD ["python", "-m", "private_gpt"] +ENTRYPOINT python -m private_gpt