mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-15 16:10:39 +03:00
change chat gpt provider (#12)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
# Telegram bot. Redirects to test-server ip
|
||||
:8084 {
|
||||
reverse_proxy chat_service:1338
|
||||
reverse_proxy chat_service:8858
|
||||
header Strict-Transport-Security max-age=31536000;
|
||||
|
||||
# Removing some headers for improved security:
|
||||
|
||||
@@ -67,21 +67,21 @@ USER ${USER}
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
||||
|
||||
#===================== chat-service ================================
|
||||
FROM compile-image as chat-service
|
||||
|
||||
RUN printf "================ Start build chat-service. with USER: ${USER} ==============="
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
# Copying bot service
|
||||
COPY --chown=${USER}:${USER} ../chat_gpt_microservice /app/
|
||||
|
||||
COPY --from=compile-image /app/.venv /app/.venv
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
||||
USER ${USER}
|
||||
|
||||
RUN chmod -R 777 translations
|
||||
|
||||
CMD ["python3", "./run.py"]
|
||||
##===================== chat-service ================================
|
||||
#FROM compile-image as chat-service
|
||||
#
|
||||
#RUN printf "================ Start build chat-service. with USER: ${USER} ==============="
|
||||
#
|
||||
#WORKDIR /app/
|
||||
#
|
||||
## Copying bot service
|
||||
#COPY --chown=${USER}:${USER} ../chat_gpt_microservice /app/
|
||||
#
|
||||
#COPY --from=compile-image /app/.venv /app/.venv
|
||||
#ENV PATH="/app/.venv/bin:$PATH"
|
||||
#
|
||||
#USER ${USER}
|
||||
#
|
||||
#RUN chmod -R 777 translations
|
||||
#
|
||||
#CMD ["python3", "./run.py"]
|
||||
Reference in New Issue
Block a user