3-reduce-docker-container-size #7

Merged
david.cozariuc merged 2 commits from 3-reduce-docker-container-size into main 2025-09-29 22:00:51 +02:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit bd89e28e41 - Show all commits

View File

@ -1,5 +1,6 @@
[supervisord] [supervisord]
nodaemon=true nodaemon=true
user=root
[program:sshd] [program:sshd]
command=/usr/sbin/sshd -D command=/usr/sbin/sshd -D

View File

@ -36,7 +36,7 @@ RUN rm -f /var/www/localhost/htdocs/index.html
# enable php module in apache # enable php module in apache
RUN echo "LoadModule php_module /usr/lib/php82/libphp.so" > /etc/apache2/conf.d/php.conf RUN echo "LoadModule php_module /usr/lib/apache2/mod_php82.so" > /etc/apache2/conf.d/php.conf
# copy the app # copy the app
@ -75,6 +75,8 @@ COPY ./config/codes.txt /root/
RUN chown root:root /root/codes.txt RUN chown root:root /root/codes.txt
RUN mkdir -p /run/httpd && chown apache:apache /run/httpd
# 22 port -> ssh, 8080 port -> webserver # 22 port -> ssh, 8080 port -> webserver
EXPOSE 22 EXPOSE 22
@ -85,5 +87,5 @@ EXPOSE 8080
COPY config/supervisord.conf /etc/supervisor.d/httpd.ini COPY config/supervisord.conf /etc/supervisor.d/httpd.ini
# start supervisord # start supervisord
CMD ["/usr/bin/supervisord", "-n"] CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor.d/httpd.ini"]