Bhanu.Prakash
build(deps): update Dockerfile, app.py and requirements.txt
3ffa906
raw
history blame contribute delete
896 Bytes
# # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# # you will also find guides on how best to write your Dockerfile
# FROM python:3.9
# RUN useradd -m -u 1000 user
# USER user
# ENV HOME=/home/user \
# PATH="/home/user/.local/bin:$PATH"
# WORKDIR $HOME/app
# COPY --chown=user . $HOME/app
# COPY --chown=user ./requirements.txt ~/app/requirements.txt
# RUN pip install -r requirements.txt
# COPY --chown=user . /app
# EXPOSE 7860
# # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
# CMD ["chainlit", "run", "app.py", "-w", "--port", "7860"]
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
COPY ./requirements.txt ~/app/requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["chainlit", "run", "app.py", "--port", "7860"]