chore: update entrypoint

This commit is contained in:
Javier Martinez 2024-08-12 12:47:00 +02:00
parent fabc3f66bb
commit f73a36af2f
No known key found for this signature in database
3 changed files with 26 additions and 2 deletions

View file

@ -60,5 +60,11 @@ 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 python -m private_gpt
ENTRYPOINT ["/entrypoint.sh"]
CMD ["python", "-m", "private_gpt"]