mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
try
This commit is contained in:
parent
efece059f0
commit
5f03c12c0c
@ -20,8 +20,7 @@ RUN apt-get update \
|
||||
|
||||
# install python dependencies
|
||||
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 --no-cache-dir --find-links=/usr/src/app/wheels pipenv
|
||||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||
COPY ./Pipfile .
|
||||
RUN pipenv install --deploy --dev
|
||||
|
||||
@ -64,11 +63,10 @@ RUN apt-get update \
|
||||
&& apt-get clean
|
||||
|
||||
# install python dependencies
|
||||
COPY --from=builder /usr/src/app/wheels /wheels
|
||||
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 --no-cache /wheels/*
|
||||
# RUN pipenv install --deploy --dev
|
||||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||
RUN pipenv install --deploy --dev
|
||||
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
||||
|
||||
# add app
|
||||
|
||||
@ -33,4 +33,4 @@ app.add_middleware(
|
||||
|
||||
|
||||
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:
|
||||
# - ./llmops/src/rag_cot_evaluation/chroma_db:/app/llmops/src/rag_cot_evaluation/chroma_db
|
||||
|
||||
# backend:
|
||||
# build:
|
||||
# context: ./backend
|
||||
# dockerfile: Dockerfile
|
||||
# container_name: backend
|
||||
# platform: linux/amd64
|
||||
# command: pipenv run uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
|
||||
# volumes:
|
||||
# - ./backend:/usr/src/app
|
||||
# ports:
|
||||
# - "8004:8000"
|
||||
# environment:
|
||||
# - ENVIRONMENT=dev
|
||||
# - TESTING=0
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: backend
|
||||
platform: linux/amd64
|
||||
command: pipenv run uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
|
||||
volumes:
|
||||
- ./backend:/usr/src/app
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- ENVIRONMENT=dev
|
||||
- TESTING=0
|
||||
|
||||
frontend:
|
||||
build:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user