Merge branch 'main' of https://github.com/smart-school-smk4/smk4-web
This commit is contained in:
commit
cc89aa139c
|
@ -50,7 +50,7 @@ jobs:
|
|||
- name: Build assets
|
||||
run: npm run build
|
||||
|
||||
- name: Run migrations
|
||||
- name: Run migration
|
||||
env:
|
||||
DB_HOST: 127.0.0.1
|
||||
DB_PORT: 3306
|
||||
|
|
22
Dockerfile
22
Dockerfile
|
@ -4,26 +4,24 @@ WORKDIR /app
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN apk add --no-cache nodejs npm
|
||||
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
RUN npm ci && npm run build
|
||||
|
||||
FROM php:8.2-fpm
|
||||
|
||||
WORKDIR /var/www
|
||||
|
||||
RUN apt-get update && apt-get install -y curl unzip git \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
COPY --from=build /app /var/www
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libzip-dev \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
libonig-dev \
|
||||
libxml2-dev \
|
||||
zip \
|
||||
git \
|
||||
unzip
|
||||
|
||||
RUN apt update && apt install -y libpng-dev libonig-dev libxml2-dev zip unzip git curl
|
||||
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
|
||||
|
||||
COPY --from=build /app /var/www
|
||||
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache \
|
||||
&& chmod -R 775 /var/www/storage /var/www/bootstrap/cache
|
||||
|
||||
CMD ["php-fpm"]
|
Loading…
Reference in New Issue