add packages for yarn

This commit is contained in:
Michael Parker 2020-04-11 21:48:22 -04:00
parent 55c8ddd5f2
commit 744ad99283
2 changed files with 6 additions and 1 deletions

View file

@ -71,5 +71,10 @@ php artisan db:seed --force
echo -e "Starting cron jobs."
crond -L /var/log/crond -l 5
## install yarn stuff
yarn install --production
yarn add cross-env
yarn run build:production
echo -e "Starting supervisord."
exec "$@"

View file

@ -2,7 +2,7 @@ FROM php:7.4-fpm-alpine
WORKDIR /app
RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar unzip nginx libpng-dev libxml2-dev libzip-dev certbot; \
RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar unzip nginx libpng-dev libxml2-dev libzip-dev certbot yarn; \
docker-php-ext-install bcmath; \
docker-php-ext-install gd; \
docker-php-ext-install mbstring; \