test-nginx-1 / Dockerfile
krandiash's picture
Upload with huggingface_hub
32d6768
# 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"]