From 247464d71224157027f6cf785b329b0962014fac Mon Sep 17 00:00:00 2001 From: Harish Karumuthil Date: Thu, 22 Feb 2024 12:47:11 +0530 Subject: [PATCH] initial commit --- Dockerfile | 92 ++++++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 26 +++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3a8b086 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,92 @@ +FROM debian:bookworm + +ENV container docker +ENV LC_ALL C +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update \ + && apt-get install -y systemd systemd-sysv \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +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 update && apt-get install -y \ +neovim \ +tmux \ +git \ +openssh-server \ +openssh-sftp-server \ +apache2-utils \ +apache2 \ +mariadb-server \ +libapache2-mod-php8.2 \ +php8.2-apcu \ +php8.2-ast \ +php8.2-bcmath \ +php8.2-bz2 \ +php8.2-cgi \ +php8.2-cli \ +php8.2-common \ +php8.2-curl \ +php8.2-dba \ +php8.2-dev \ +php8.2-fpm \ +php8.2-gd \ +php8.2-gmagick \ +php8.2-gmp \ +php8.2-gnupg \ +php8.2-http \ +php8.2-imap \ +php8.2-intl \ +php8.2-ldap \ +php8.2-mailparse \ +php8.2-mbstring \ +php8.2-mcrypt \ +php8.2-memcached \ +php8.2-msgpack \ +php8.2-mysql \ +php8.2-oauth \ +php8.2-odbc \ +php8.2-opcache \ +php8.2-pcov \ +php8.2-pgsql \ +php8.2-ps \ +php8.2-raphf \ +php8.2-readline \ +php8.2-redis \ +php8.2-sqlite3 \ +php8.2-uuid \ +php8.2-xdebug \ +php8.2-xml \ +php8.2-xmlrpc \ +php8.2-xsl \ +php8.2-yaml \ +php8.2-zip \ +php8.2 \ +perl \ +curl + +RUN curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh && \ +sh setup-repos.sh -f && \ +apt-get install -y --install-recommends webmin + +RUN apt-get install -y composer; rm setup-repos.sh + +RUN bash -c "echo -e 'secret\nsecret' | passwd -q root" + +# VOLUME [ "/sys/fs/cgroup" ] + +CMD ["/lib/systemd/systemd"] +# CMD [ "init", "--log-target=console", "--log-level=debug", "--crash-shell" ] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..be610b4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ + +version: '3' +services: + www: + build: + context: ./ + dockerfile: ./Dockerfile + tty: true + ports: + - 8090:80 + - 8093:443 + - 8099:10000 + # command: '/bin/bash -c "trap : TERM INT; sleep infinity & wait"' + command: "/sbin/init --log-target=console --log-level=debug --crash-shell" + environment: + # container: docker + container: podman + # volumes: + # - /sys/fs/cgroup:/sys/fs/cgroup + # tmpfs: + # - /tmp + # - /var/run + # - /var/cache + + +