Spaces:
Runtime error
Runtime error
Karan Goel
commited on
Commit
ยท
ccef048
1
Parent(s):
20fdfc7
Add application file
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./tutorial-1.py /code/tutorial-1.py
|
6 |
+
|
7 |
+
RUN git clone https://github.com/hazyresearch/meerkat.git && \
|
8 |
+
cd meerkat
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
10 |
+
|
11 |
+
# Install node >= 18.0.0 and npm
|
12 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
13 |
+
RUN apt-get install -y nodejs
|
14 |
+
|
15 |
+
# Install npm packages
|
16 |
+
RUN cd meerkat/interactive/app/ && npm install && npm run build
|
17 |
+
|
18 |
+
COPY . .
|
19 |
+
|
20 |
+
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
21 |
+
CMD ["mk", "run", "/code/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"]
|