Spaces:
Runtime error
Runtime error
# | |
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"] |