Add base image
This commit is contained in:
parent
e8e309fccd
commit
6dffb8d4ff
|
@ -0,0 +1,9 @@
|
||||||
|
FROM php:8.1.6-fpm as php
|
||||||
|
WORKDIR /app
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y rsync libcurl3-dev apt-utils zlib1g-dev libpng-dev libicu-dev libonig-dev unzip
|
||||||
|
RUN apt-get install -y --no-install-recommends texlive-base texlive-latex-base texlive-pictures texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended texlive-fonts-extra
|
||||||
|
RUN docker-php-ext-install pdo_mysql curl gd exif intl mbstring pcntl
|
||||||
|
RUN pecl install redis && docker-php-ext-enable redis
|
||||||
|
RUN usermod -s /bin/bash www-data
|
||||||
|
|
|
@ -8,17 +8,10 @@ WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN npm install && npm run prod && npm run img && rm -R node_modules
|
RUN npm install && npm run prod && npm run img && rm -R node_modules
|
||||||
|
|
||||||
FROM php:8.1.6-fpm as php
|
FROM zoomyboy/adrema-base:latest as php
|
||||||
WORKDIR /app
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y rsync libcurl3-dev apt-utils zlib1g-dev libpng-dev libicu-dev libonig-dev unzip
|
|
||||||
RUN apt-get install -y --no-install-recommends texlive-base texlive-latex-base texlive-pictures texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended texlive-fonts-extra
|
|
||||||
RUN docker-php-ext-install pdo_mysql curl gd exif intl mbstring pcntl
|
|
||||||
RUN pecl install redis && docker-php-ext-enable redis
|
|
||||||
COPY --chown=www-data:www-data . /app
|
COPY --chown=www-data:www-data . /app
|
||||||
COPY --chown=www-data:www-data --from=node /app/public /app/public
|
COPY --chown=www-data:www-data --from=node /app/public /app/public
|
||||||
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
|
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
|
||||||
RUN usermod -s /bin/bash www-data
|
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
RUN php artisan telescope:publish
|
RUN php artisan telescope:publish
|
||||||
|
|
|
@ -27,13 +27,8 @@ steps:
|
||||||
- npm ci && npm run img && npm run prod && rm -R node_modules
|
- npm ci && npm run img && npm run prod && rm -R node_modules
|
||||||
|
|
||||||
- name: tests
|
- name: tests
|
||||||
image: php:8.1.6
|
image: zoomyboy/adrema-base:latest
|
||||||
commands:
|
commands:
|
||||||
- apt-get update > /dev/null
|
|
||||||
- apt-get install -y rsync libcurl3-dev apt-utils zlib1g-dev libpng-dev libicu-dev libonig-dev unzip > /dev/null
|
|
||||||
- apt-get install -y --no-install-recommends texlive-base texlive-latex-base texlive-pictures texlive-latex-extra texlive-lang-german texlive-plain-generic texlive-fonts-recommended texlive-fonts-extra > /dev/null
|
|
||||||
- docker-php-ext-install pdo_mysql curl gd exif intl mbstring pcntl > /dev/null
|
|
||||||
- pecl install redis && docker-php-ext-enable redis > /dev/null
|
|
||||||
- php artisan migrate
|
- php artisan migrate
|
||||||
- php artisan test
|
- php artisan test
|
||||||
- rm -f .env
|
- rm -f .env
|
||||||
|
|
Loading…
Reference in New Issue