CoolFace
Apppublic

mlukac/xrf-explorer-dev

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1FROM python:3.11.132 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 11RUN python3 -m pip install -e .12 13CMD sh -c 'echo "$HF_AUTH_CREDENTIALS" > /tmp/credentials.json && \14           panel serve /code/xrf_explorer/app.py \15           --address 0.0.0.0 \16           --port 7860 \17           --allow-websocket-origin "*" \18           --basic-auth /tmp/credentials.json \19           --cookie-secret "$HF_COOKIE_SECRET" \20           --basic-login-template /code/login_template.html'21 22RUN mkdir /.cache23RUN chmod 777 /.cache24RUN mkdir .chroma25RUN chmod 777 .chroma