comfyui-launcher / Dockerfile
multimodalart's picture
Update Dockerfile
f9ed5fe verified
raw
history blame
No virus
690 Bytes
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 sed -i '/server {/a \ client_max_body_size 1024M;' /etc/nginx/nginx.conf
#For debugging
RUN cat /etc/nginx/nginx.conf
#######################################
# End root user section
#######################################
USER user