mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 00:03:15 +08:00
try
This commit is contained in:
parent
efece059f0
commit
5f03c12c0c
@ -20,8 +20,7 @@ RUN apt-get update \
|
|||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||||
RUN pip install --no-cache-dir --find-links=/usr/src/app/wheels pipenv
|
|
||||||
COPY ./Pipfile .
|
COPY ./Pipfile .
|
||||||
RUN pipenv install --deploy --dev
|
RUN pipenv install --deploy --dev
|
||||||
|
|
||||||
@ -64,11 +63,10 @@ RUN apt-get update \
|
|||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
COPY --from=builder /usr/src/app/wheels /wheels
|
|
||||||
COPY --from=builder /usr/src/app/Pipfile .
|
COPY --from=builder /usr/src/app/Pipfile .
|
||||||
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
RUN pip install --no-cache /wheels/*
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||||
# RUN pipenv install --deploy --dev
|
RUN pipenv install --deploy --dev
|
||||||
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
||||||
|
|
||||||
# add app
|
# add app
|
||||||
|
|||||||
@ -33,4 +33,4 @@ app.add_middleware(
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
uvicorn.run("main:app", host="0.0.0.0", port=3100, reload=True)
|
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
|
||||||
@ -7,20 +7,20 @@ services:
|
|||||||
# volumes:
|
# volumes:
|
||||||
# - ./llmops/src/rag_cot_evaluation/chroma_db:/app/llmops/src/rag_cot_evaluation/chroma_db
|
# - ./llmops/src/rag_cot_evaluation/chroma_db:/app/llmops/src/rag_cot_evaluation/chroma_db
|
||||||
|
|
||||||
# backend:
|
backend:
|
||||||
# build:
|
build:
|
||||||
# context: ./backend
|
context: ./backend
|
||||||
# dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
# container_name: backend
|
container_name: backend
|
||||||
# platform: linux/amd64
|
platform: linux/amd64
|
||||||
# command: pipenv run uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
|
command: pipenv run uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./backend:/usr/src/app
|
- ./backend:/usr/src/app
|
||||||
# ports:
|
ports:
|
||||||
# - "8004:8000"
|
- "8000:8000"
|
||||||
# environment:
|
environment:
|
||||||
# - ENVIRONMENT=dev
|
- ENVIRONMENT=dev
|
||||||
# - TESTING=0
|
- TESTING=0
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
|
|
||||||
const BASE_DOMAIN_NAME = process.env.REACT_APP_DOMAIN_NAME || 'localhost';
|
const BASE_DOMAIN_NAME = import.meta.env.REACT_APP_DOMAIN_NAME || 'localhost';
|
||||||
|
|
||||||
|
|
||||||
interface Message {
|
interface Message {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user