Added docker features
This commit is contained in:
parent
b70af02223
commit
cbe3e7cc2b
@ -2,5 +2,5 @@
|
|||||||
apt-get install nginx -y
|
apt-get install nginx -y
|
||||||
apt-get install php8.2 php8.2-common php8.2-fpm php8.2-mbstring php8.2-gd php8.2-curl php8.2-xml php8.2-imap php8.2-zip php8.2-intl php8.2-mysql -y # PHP
|
apt-get install php8.2 php8.2-common php8.2-fpm php8.2-mbstring php8.2-gd php8.2-curl php8.2-xml php8.2-imap php8.2-zip php8.2-intl php8.2-mysql -y # PHP
|
||||||
#apt-get install vim file bash-completion procps nginx screen git sudo less -y # Utils
|
#apt-get install vim file bash-completion procps nginx screen git sudo less -y # Utils
|
||||||
apt-get install git sudo -y # Utils
|
apt-get install git file sudo -y # Utils
|
||||||
apt-get install mariadb-client mariadb-server -y # MariaDB Server + Client
|
apt-get install mariadb-client mariadb-server -y # MariaDB Server + Client
|
||||||
|
@ -1,14 +1,19 @@
|
|||||||
FROM debian:bookworm
|
FROM debian:bookworm
|
||||||
|
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||||
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||||
|
apt-get update && apt-get full-upgrade -y && apt-get install -y nginx php8.2 php8.2-common php8.2-fpm php8.2-mbstring php8.2-gd php8.2-curl php8.2-imap php8.2-zip php8.2-intl php8.2-mysql git file sudo less mariadb-client mariadb-server
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY app /app
|
COPY app /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get full-upgrade -y && apt-get autoremove -y && apt-get autoclean -y
|
#RUN apt-get update && apt-get full-upgrade -y && apt-get autoremove -y && apt-get autoclean -y
|
||||||
|
|
||||||
#RUN /app/scripts/sury-php-repo.sh
|
#RUN /app/scripts/sury-php-repo.sh
|
||||||
|
|
||||||
RUN /app/scripts/install-dependencies.sh
|
#RUN /app/scripts/install-dependencies.sh
|
||||||
|
|
||||||
RUN git clone --branch 21.0 --single-branch --depth 1 https://github.com/Dolibarr/dolibarr.git
|
RUN git clone --branch 21.0 --single-branch --depth 1 https://github.com/Dolibarr/dolibarr.git
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user