binaryfarmer/Chatbot
0
1# For more information, please refer to https://aka.ms/vscode-docker-python2FROM debian:bullseye-slim3 4ENV PATH /usr/local/bin:$PATH5 6ENV PYTHONDONTWRITEBYTECODE=17 8# Turns off buffering for easier container logging9ENV PYTHONUNBUFFERED=110 11# Install pip requirements12COPY requirements.txt .13RUN python -m pip install -r requirements.txt14 15WORKDIR /src16COPY . /src17 18# Creates a non-root user with an explicit UID and adds permission to access the /src folder19# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers20RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /src21USER appuser22 23# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug24CMD ["Python3", "\src\main.py", "--host", "0.0.0.0", "--port", "7860"]25 