spqw-org/code-qa
0
1FROM python:3.92 3WORKDIR /code4 5COPY ./requirements.txt /code/requirements.txt6RUN python3 -m pip install --no-cache-dir --upgrade pip7RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt8 9COPY . .10 11CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "spqw-org-code-qa.hf.space", "--allow-websocket-origin", "0.0.0.0:7860"]12 13RUN mkdir /.cache14RUN chmod 777 /.cache15RUN mkdir -p checkout16RUN chmod 777 checkout17RUN mkdir .chroma18RUN chmod 777 .chroma19 20# Set up a new user named "user" with user ID 100021RUN useradd -m -u 1000 user22# Switch to the "user" user23USER user24# Set home to the user's home directory25ENV HOME=/home/user \26 PATH=/home/user/.local/bin:$PATH27# Set the working directory to the user's home directory28WORKDIR $HOME/app29# Copy the current directory contents into the container at $HOME/app setting the owner to the user30COPY --chown=user . $HOME/app