Spaces:
Build error
Build error
File size: 681 Bytes
7009660 863a1d2 19b8811 3775dae 2342754 c474a36 551761a 09cd35e 0f36dfe 7009660 0f36dfe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM tensorflow/tensorflow:latest-gpu
WORKDIR /app
# RUN apt-get upgrade -y
RUN apt-get update -y
RUN apt-get install -y git
RUN apt install -y make wget git gcc g++ lhasa libgmp-dev libmpfr-dev libmpc-dev flex bison gettext texinfo ncurses-dev autoconf rsync
COPY ./app .
RUN pip install -r requirements.txt
#RUN python load_docs.py
RUN --mount=type=secret,id=OPENAI_API_KEY \
cat /run/secrets/OPENAI_API_KEY > .openaiapikey
RUN mkdir /app/.cache
RUN mkdir /nltk_data
RUN mkdir /VectorStore
RUN ls -la
RUN python run.py
RUN chmod 777 /VectorStore
RUN chmod 777 /nltk_data
RUN chmod 777 /app/.cache
CMD ["streamlit", "run", "app.py", "--server.port=7860"]
#CMD ls -la
EXPOSE 7860 |