Spaces:
Paused
Paused
Update Dockerfile
Browse files1 unmodified line2345678910111213141516171819202122232425262728293031323334352 unmodified lines38394041421 unmodified lineENV DEBIAN_FRONTEND=noninteractiveRUN apt-get update \&& apt-get install -y \locales \ttyd \postgresql-14 \mosquitto nginx supervisor \sudo \curl btop openssh-server ca-certificates iproute2 \&& locale-gen en_US.UTF-8 \&& rm -rf /var/lib/apt/lists/*RUN curl https://i.jpillora.com/chisel! | bash# Настройки SSHRUN mkdir /var/run/sshd && \sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_configRUN ssh-keygen -A && \mkdir -p /var/run/sshd && \chmod 0755 /var/run/sshdRUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config# Папки и праваRUN mkdir -p /var/run/postgresql /var/log/supervisor /var/log/nginx /var/www/html && \chown -R postgres:postgres /var/run/postgresql# Копируем наши конфигиCOPY nginx.conf /etc/nginx/sites-available/defaultCOPY supervisord.conf /etc/supervisor/supervisord.confCOPY mosquitto.conf /etc/mosquitto/mosquitto.conf2 unmodified linesRUN chmod +x /entrypoint.sh && \echo "<h1>Server is running!</h1>" > /var/www/html/index.htmlEXPOSE 7860ENTRYPOINT ["/entrypoint.sh"]1 unmodified line23456789101112131415161718192021222324252627282 unmodified lines3132333435361 unmodified lineENV DEBIAN_FRONTEND=noninteractiveRUN apt-get update && apt-get install -y \locales ttyd postgresql-14 mosquitto nginx supervisor \sudo curl btop openssh-server ca-certificates iproute2 \&& locale-gen en_US.UTF-8 \&& rm -rf /var/lib/apt/lists/*# Исправленная установка ChiselRUN curl https://i.jpillora.com/chisel! | bash && \chmod +x /usr/local/bin/chisel# Настройки SSHRUN mkdir -p /var/run/sshd && \ssh-keygen -A && \echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config# Создание необходимых папокRUN mkdir -p /var/run/postgresql /var/log/supervisor /var/log/nginx /var/www/html && \chown -R postgres:postgres /var/run/postgresql# Копируем конфигиCOPY nginx.conf /etc/nginx/sites-available/defaultCOPY supervisord.conf /etc/supervisor/supervisord.confCOPY mosquitto.conf /etc/mosquitto/mosquitto.conf2 unmodified linesRUN chmod +x /entrypoint.sh && \echo "<h1>Server is running!</h1>" > /var/www/html/index.html# HF требует порт 7860EXPOSE 7860ENTRYPOINT ["/entrypoint.sh"]
Dockerfile+12-18