Add dockerfile
This commit is contained in:
parent
974e5e1745
commit
37a7882aff
33
dockerfile
Normal file
33
dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
FROM chialab/php:8.3-apache
|
||||
|
||||
ENV LC_ALL C
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
systemd systemd-sysv dbus dbus-user-session
|
||||
|
||||
RUN cd /lib/systemd/system/sysinit.target.wants/ \
|
||||
&& rm $(ls | grep -v systemd-tmpfiles-setup)
|
||||
|
||||
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
|
||||
/etc/systemd/system/*.wants/* \
|
||||
/lib/systemd/system/local-fs.target.wants/* \
|
||||
/lib/systemd/system/sockets.target.wants/*udev* \
|
||||
/lib/systemd/system/sockets.target.wants/*initctl* \
|
||||
/lib/systemd/system/basic.target.wants/* \
|
||||
/lib/systemd/system/anaconda.target.wants/* \
|
||||
/lib/systemd/system/plymouth* \
|
||||
/lib/systemd/system/systemd-update-utmp*
|
||||
|
||||
RUN apt-get install -y --no-install-recommends procps iproute2 vim openssh-server;\
|
||||
rm /var/log/apache2/* ;\
|
||||
systemctl enable apache2
|
||||
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 22/tcp
|
||||
|
||||
STOPSIGNAL SIGRTMIN+3
|
||||
VOLUME [ "/var/log/apache2/", "/var/www/" ]
|
||||
|
||||
ENTRYPOINT [ "/lib/systemd/systemd", "--log-target=console" ]
|
||||
Loading…
x
Reference in New Issue
Block a user