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 clever-dev | |
# WORKDIR $HOME/meerkat/meerkat/interactive/app/ | |
# RUN npm install | |
# WORKDIR $HOME/meerkat/ | |
# RUN pip install --no-cache-dir --upgrade . | |
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-1.py $HOME/tutorial-1.py | |
RUN mk run $HOME/tutorial-1.py --host 0.0.0.0 --api-port 7860 | |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |
CMD ["mk", "run", "$HOME/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"] |