Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
WORKDIR /code | |
COPY ./tutorial-1.py /code/tutorial-1.py | |
RUN git clone https://github.com/hazyresearch/meerkat.git | |
# cd to /code/meerkat/ and install meerkat | |
RUN cd /code/meerkat/ | |
# Print the present working directory | |
RUN pwd | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
# Install node >= 18.0.0 and npm | |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - | |
RUN apt-get install -y nodejs | |
# Install npm packages | |
RUN cd meerkat/interactive/app/ && npm install && npm run build | |
COPY . . | |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |
CMD ["mk", "run", "/code/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"] |