File size: 723 Bytes
ccef048
 
 
 
 
ec2feb3
 
 
 
bb988a3
904bbb4
aaacdb2
 
 
 
904bbb4
 
e75caf7
f1045c2
 
ccef048
ec2feb3
ccef048
 
cce430e
aaacdb2
b5a7b66
ccef048
 
 
 
 
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
FROM python:3.9

WORKDIR /code
COPY ./tutorial-1.py /code/tutorial-1.py

# 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/meerkat/meerkat/interactive/app/
RUN ls
RUN npm install && npm run build

WORKDIR /code/meerkat/

RUN pwd
RUN pip install --no-cache-dir --upgrade .
# -r requirements.txt



# Install npm packages
WORKDIR /code/meerkat/meerkat/interactive/app/
RUN ls
RUN 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"]