Spaces:
Running
on
A10G
Running
on
A10G
FROM thecooltechguy/comfyui_launcher | |
RUN useradd -m -u 1000 user | |
RUN chown -R user:user /app || true | |
####################################### | |
# Start root user section | |
####################################### | |
USER root | |
RUN mkdir /data && chown user:user /data | |
####################################### | |
# End root user section | |
####################################### | |
USER user | |
# Modify nginx.conf as user | |
RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /app/nginx.conf | |
# Print the contents of nginx.conf for checking | |
RUN cat /app/nginx.conf |