Chatbot_3 / Dockerfile
Praveen0309's picture
final commit
2764d8b
raw
history blame
473 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
RUN chmod 777 $HOME/app
ENV FLASK_APP=$HOME/app.py
ENV FLASK_RUN_HOST=0.0.0.0
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip
EXPOSE 7860
COPY --chown=user . $HOME/app
CMD ["cd", "/home/user/app", "&&", "flask", "run"]