File size: 972 Bytes
f49db8f
 
 
 
 
61fcd45
33da5bc
 
32d6768
f49db8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
37
38
39
# FROM python:3.9
FROM tiangolo/uwsgi-nginx:python3.9

WORKDIR /code
RUN chmod 777 /code
RUN chmod 777 /etc/nginx/nginx.conf
RUN chmod 777 /etc/nginx/
RUN chmod 777 /etc/nginx/conf.d
# RUN chmod 777 /etc/nginx/conf.d/nginx.conf

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME

RUN git clone https://github.com/hazyresearch/meerkat.git
WORKDIR $HOME/meerkat/
RUN git checkout karan/deploy
RUN pip install --upgrade .

# PUT THIS BACK
# RUN pip install meerkat-ml

COPY --chown=user . $HOME/

# Set env variables
RUN mkdir $HOME/logs
RUN chmod 777 $HOME/logs
ENV MEERKAT_LOG_DIR=$HOME/logs
RUN chmod 777 $HOME/
ENV MEERKAT_CONFIG=$HOME/config.yaml
ENV SPACE_AUTHOR_NAME=krandiash
ENV SPACE_REPO_NAME=test-nginx-1

COPY --chown=user ./tutorial-reactive-viewer.py $HOME/tutorial-reactive-viewer.py

WORKDIR $HOME
CMD ["mk", "run", "/home/user/tutorial-reactive-viewer.py", "--host", "0.0.0.0", "--api-port", "7860"]