Spaces:
Running
on
A10G
Running
on
A10G
FROM thecooltechguy/comfyui_launcher | |
RUN useradd -m -u 1000 user | |
RUN chown -R user:user /app || true | |
RUN chown -R user:user /var || true | |
RUN chown -R user:user /run || true | |
####################################### | |
# Start root user section | |
####################################### | |
USER root | |
RUN mkdir /data && chown user:user /data | |
RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /etc/nginx/nginx.conf | |
RUN cat /app/web/src/pages/index.tsx | |
RUN sed -i '/<Nav \/>/!b;n;a\<div class="flex flex-row space-x-5 p-5">The launcher may not work behave properly in this shared environment. <a href="https://huggingface.co/spaces/subbytech/comfyui-launcher?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-md.svg"></a> to use it privately.</div>' /app/web/src/pages/index.tsx | |
#For debugging | |
RUN cat /app/web/src/pages/index.tsx | |
####################################### | |
# End root user section | |
####################################### | |
USER user | |