chatbot-hf / Dockerfile
5258-vikram's picture
Update Dockerfile
7ead96b
raw
history blame
653 Bytes
FROM ubuntu:latest
RUN apt update
RUN apt-get update && \
apt-get install -y curl python3-pip python3-dev && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY process_one.sh /app/process_one.sh
COPY process_two.sh /app/process_two.sh
COPY main.sh /app/main.sh
COPY home.py /frontend/home.py
COPY streaming.py /frontend/streaming.py
COPY utils.py /frontend/utils.py
COPY requirements.txt /frontend/requirements.txt
WORKDIR /app
EXPOSE 8501
RUN chmod +x /app/process_one.sh
RUN chmod +x /app/process_two.sh
RUN chmod +x /app/main.sh
CMD ["/app/main.sh"]