* FIxed dockerfile
This commit is contained in:
parent
99b554bbcc
commit
bd89e28e41
@ -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
|
||||||
@ -11,4 +12,4 @@ priority=20
|
|||||||
command=/usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf
|
command=/usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
priority=10
|
priority=10
|
||||||
@ -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"]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user