Added fox-start.d and fixed rootfs
This commit is contained in:
parent
b601bd365f
commit
fefca2b6e9
|
@ -0,0 +1,2 @@
|
||||||
|
/images
|
||||||
|
/.git
|
11
Dockerfile
11
Dockerfile
|
@ -1,10 +1,10 @@
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
ENV php_version=7.4
|
ENV php_version=7.4
|
||||||
|
|
||||||
COPY ["timezone", "localtime", "/etc/"]
|
COPY ["/rootfs/etc/timezone", "/rootfs/etc/localtime", "/etc/"]
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt-get update -y \
|
||||||
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
|
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
|
||||||
&& apt-add-repository ppa:ondrej/php \
|
&& apt-add-repository ppa:ondrej/php \
|
||||||
&& apt-get update -y \
|
&& apt-get update -y \
|
||||||
|
@ -31,9 +31,8 @@ RUN apt update -y \
|
||||||
&& rm -rf /var/www/html/* \
|
&& rm -rf /var/www/html/* \
|
||||||
&& a2enmod rewrite
|
&& a2enmod rewrite
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /
|
COPY rootfs /
|
||||||
COPY 000-default.conf /etc/apache2/sites-available
|
WORKDIR /var/www/html
|
||||||
WORKDIR /var/www/hmtl
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["/docker-entrypoint.sh"]
|
CMD ["/docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
service cron start
|
|
||||||
bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"
|
|
|
@ -1 +1 @@
|
||||||
100050
|
100056
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
find /etc/fox-start.d -maxdepth 1 -type f -exec {} \;
|
||||||
|
echo "Starting cron:"
|
||||||
|
service cron start
|
||||||
|
echo "Starting apache:"
|
||||||
|
bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo -n "Touching cron..."
|
||||||
|
touch /etc/crontab
|
||||||
|
find /etc/cron.d -maxdepth 1 -type f -exec bash -c "touch '{}'" \;
|
||||||
|
echo "OK"
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue