Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
# RUN useradd -rm -d /code/ubuntu -s /bin/bash -g root -G sudo -u 1001 ubuntu | |
# USER ubuntu | |
WORKDIR /code | |
RUN chmod 777 /code | |
# Install node >= 18.0.0 and npm | |
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | |
# RUN apt-get install -y nodejs | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH | |
WORKDIR $HOME | |
RUN git clone https://github.com/hazyresearch/meerkat.git | |
WORKDIR $HOME/meerkat/ | |
RUN git checkout karan/deploy | |
# WORKDIR $HOME/meerkat/meerkat/interactive/app/ | |
# RUN npm install | |
# WORKDIR $HOME/meerkat/ | |
RUN pip install --upgrade . | |
# PUT THIS BACK | |
# RUN pip install meerkat-ml | |
COPY --chown=user . $HOME/ | |
# Set env variables | |
RUN mkdir $HOME/logs | |
RUN chmod 777 $HOME/logs | |
ENV MEERKAT_LOG_DIR=$HOME/logs | |
RUN chmod 777 $HOME/ | |
ENV MEERKAT_CONFIG=$HOME/config.yaml | |
COPY --chown=user ./tutorial.py $HOME/tutorial.py | |
ENV SPACE_AUTHOR_NAME=krandiash | |
ENV SPACE_REPO_NAME=test-spaces | |
# RUN mk run $HOME/tutorial.py --host 0.0.0.0 --api-port 7860 | |
WORKDIR $HOME | |
# CMD ["uvicorn", "tutorial:page", "--host", "0.0.0.0", "--port", "7860"] | |
CMD ["mk", "run", "/home/user/tutorial.py", "--host", "0.0.0.0", "--api-port", "7860"] |