File size: 792 Bytes
fd5ea05 7d763e1 fd5ea05 7d763e1 |
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 |
FROM python:3.9
WORKDIR /code
RUN chmod 777 /code
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=testing-3
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"] |