Spaces:
Running
Running
File size: 536 Bytes
5e8fd8b 0d1cc7d 5e8fd8b 0d1cc7d 5e8fd8b 53ff648 d2e898f 9151071 ac693fd 53ff648 1d0ea97 9151071 1d0ea97 369dfa8 1d0ea97 a777112 5e8fd8b 369dfa8 5e8fd8b b1f6e10 |
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 |
#
FROM python:3.11
#
WORKDIR /code
#
COPY ./requirements.txt /code/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
#
COPY ./start_service.sh /code/start_service.sh
#
COPY ./app /code/app
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# RUN curl -fsSL https://ollama.com/install.sh | sh
USER docker
# RUN nohup ollama serve & sleep 5
#
# RUN chmod +x /code/start_service.sh
#
EXPOSE 7860
# # Run .sh file
ENTRYPOINT ["sh", "/code/start_service.sh"] |