Add backend and frontend

This commit is contained in:
Gk0Wk
2024-04-07 15:04:00 +08:00
parent 49fdd9cc43
commit 84a7cb1b7e
233 changed files with 29927 additions and 0 deletions

20
backend/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.11.8-alpine3.18
WORKDIR /app
EXPOSE 8000/tcp
# Build
COPY requirements.txt ./
RUN pip --no-cache-dir install -r ./requirements.txt
# Mount
COPY . ./
# Run
ENV OPENAI_API_BASE=https://api.openai.com
ENV OPENAI_API_KEY=
ENV OPENAI_API_MODEL=gpt-4-turbo-preview
ENV USE_CACHE=False
ENV FAST_DESIGN_MODE=True
ENV GROQ_API_KEY=
ENV MISTRAL_API_KEY=
CMD ["python", "server.py", "--port", "8000"]