Spaces:
Runtime error
Runtime error
File size: 956 Bytes
ccef048 7f9a9b4 4e3f771 7f9a9b4 6fa6ba5 ccef048 ec2feb3 bb988a3 7f9a9b4 1d3d569 904bbb4 7f9a9b4 0f41187 aaacdb2 7f9a9b4 f1045c2 ccef048 55f9d07 7f9a9b4 55f9d07 7f9a9b4 4e3f771 ccef048 7f9a9b4 |
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 35 |
FROM python:3.9
RUN useradd -rm -d /code/ubuntu -s /bin/bash -g root -G sudo -u 1001 ubuntu
USER ubuntu
WORKDIR /code/ubuntu
RUN chmod 777 /code/ubuntu
# 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 git clone https://github.com/hazyresearch/meerkat.git
WORKDIR /code/ubuntu/meerkat/
RUN git checkout clever-dev
WORKDIR /code/ubuntu/meerkat/meerkat/interactive/app/
RUN npm install
WORKDIR /code/ubuntu/meerkat/
RUN pip install --no-cache-dir --upgrade .
COPY . .
# Set env variables
RUN mkdir /code/ubuntu/logs
RUN chmod 777 /code/ubuntu/logs
ENV MEERKAT_LOG_DIR=/code/ubuntu/logs
RUN chmod 777 /code/ubuntu/
ENV MEERKAT_CONFIG=/code/ubuntu/config.yaml
COPY ./tutorial-1.py /code/ubuntu/tutorial-1.py
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
CMD ["mk", "run", "/code/ubuntu/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"] |