First commit!
This commit is contained in:
commit
62ea3b87d8
2
.dockeringore
Normal file
2
.dockeringore
Normal file
@ -0,0 +1,2 @@
|
||||
.gitignore
|
||||
2do.txt
|
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
4
app/install-dependencies.sh
Executable file
4
app/install-dependencies.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
/usr/sbin/apt-get install php8.2 php8.2-common php8.2-fpm -y # PHP
|
||||
/usr/sbin/apt-get install vim file bash-completion procps nginx screen git less -y # Utils
|
||||
/usr/sbin/apt-get install mariadb-client mariadb-server -y # MariaDB Server + Client
|
5
app/launch-daemons.sh
Executable file
5
app/launch-daemons.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
/etc/init.d/nginx start
|
||||
/etc/init.d/php8.2-fpm start
|
||||
/etc/init.d/mariadb start
|
||||
/bin/sh
|
13
app/sury-php-repo.sh
Executable file
13
app/sury-php-repo.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# To add this repository please do:
|
||||
|
||||
if [ "$(whoami)" != "root" ]; then
|
||||
SUDO=sudo
|
||||
fi
|
||||
|
||||
${SUDO} apt-get update
|
||||
${SUDO} apt-get -y install lsb-release ca-certificates curl
|
||||
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
|
||||
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
|
||||
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
||||
${SUDO} apt-get update
|
17
dockerfile
Normal file
17
dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM debian:bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY app /app
|
||||
|
||||
RUN apt-get update && apt-get full-upgrade -y
|
||||
|
||||
RUN /app/sury-php-repo.sh
|
||||
|
||||
RUN /app/install-dependencies.sh
|
||||
|
||||
ENV PORT=8080
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/app/launch-daemons.sh"]
|
Loading…
x
Reference in New Issue
Block a user