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"] |