Spaces:
Runtime error
Runtime error
File size: 1,386 Bytes
0cc9d01 07cd15e 0cc9d01 07cd15e 0cc9d01 07cd15e 0cc9d01 07cd15e 0cc9d01 07cd15e 0cc9d01 07cd15e 0cc9d01 b43f540 0cc9d01 07cd15e 0cc9d01 10e410a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
ARG APP_COLOR
ARG APP_NAME
FROM node:20 as chatui-builder
WORKDIR /app
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
git gettext && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/huggingface/chat-ui.git
WORKDIR /app/chat-ui
COPY .env.local.template .env.local.template
RUN mkdir defaults
ADD defaults /defaults
RUN chmod -R 777 /defaults
RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
echo "${MONGODB_URL}" && \
envsubst < ".env.local.template" > ".env.local" \
&& rm .env.local.template
RUN --mount=type=cache,target=/app/.npm \
npm set cache /app/.npm && \
npm ci
RUN npm run build
FROM python:3.9-slim
ENV MODELSLAB_API_KEY=aDrjIP2SMsAcmFyxHlxZdmanJbCubemDqypzEI1wdsrZFlV0kd4NzZnoaH2N
WORKDIR /app
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl gettext && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir requests pyttsx3 speechrecognition
COPY . /app
CMD ["python", "StarReliabilityApp_Refined.py"]
|