Spaces:
Runtime error
Runtime error
Karan Goel
commited on
Commit
ยท
7f9a9b4
1
Parent(s):
4e3f771
udpate
Browse files- Dockerfile +13 -11
Dockerfile
CHANGED
@@ -1,32 +1,34 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
|
|
|
4 |
|
|
|
5 |
|
6 |
# Install node >= 18.0.0 and npm
|
7 |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
8 |
RUN apt-get install -y nodejs
|
9 |
|
10 |
RUN git clone https://github.com/hazyresearch/meerkat.git
|
11 |
-
WORKDIR /code/meerkat/
|
12 |
RUN git checkout clever-dev
|
13 |
|
14 |
-
WORKDIR /code/meerkat/meerkat/interactive/app/
|
15 |
RUN npm install
|
16 |
|
17 |
-
WORKDIR /code/meerkat/
|
18 |
RUN pip install --no-cache-dir --upgrade .
|
19 |
|
20 |
COPY . .
|
21 |
|
22 |
# Set env variables
|
23 |
-
RUN mkdir /code/logs
|
24 |
-
RUN chmod 777 /code/logs
|
25 |
-
ENV MEERKAT_LOG_DIR=/code/logs
|
26 |
-
RUN chmod 777 /code/
|
27 |
-
ENV MEERKAT_CONFIG=/code/config.yaml
|
28 |
|
29 |
-
COPY ./tutorial-1.py /code/tutorial-1.py
|
30 |
|
31 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
32 |
-
CMD ["mk", "run", "/code/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
RUN useradd -rm -d /code/ubuntu -s /bin/bash -g root -G sudo -u 1001 ubuntu
|
4 |
+
USER ubuntu
|
5 |
|
6 |
+
WORKDIR /code/ubuntu
|
7 |
|
8 |
# Install node >= 18.0.0 and npm
|
9 |
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
10 |
RUN apt-get install -y nodejs
|
11 |
|
12 |
RUN git clone https://github.com/hazyresearch/meerkat.git
|
13 |
+
WORKDIR /code/ubuntu/meerkat/
|
14 |
RUN git checkout clever-dev
|
15 |
|
16 |
+
WORKDIR /code/ubuntu/meerkat/meerkat/interactive/app/
|
17 |
RUN npm install
|
18 |
|
19 |
+
WORKDIR /code/ubuntu/meerkat/
|
20 |
RUN pip install --no-cache-dir --upgrade .
|
21 |
|
22 |
COPY . .
|
23 |
|
24 |
# Set env variables
|
25 |
+
RUN mkdir /code/ubuntu/logs
|
26 |
+
RUN chmod 777 /code/ubuntu/logs
|
27 |
+
ENV MEERKAT_LOG_DIR=/code/ubuntu/logs
|
28 |
+
RUN chmod 777 /code/ubuntu/
|
29 |
+
ENV MEERKAT_CONFIG=/code/ubuntu/config.yaml
|
30 |
|
31 |
+
COPY ./tutorial-1.py /code/ubuntu/tutorial-1.py
|
32 |
|
33 |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
34 |
+
CMD ["mk", "run", "/code/ubuntu/tutorial-1.py", "--host", "0.0.0.0", "--api-port", "7860"]
|