Skip to content

Commit 33e2d37

Browse files
committed
Add: yarn to Dockerfile
1 parent dcc8c5e commit 33e2d37

3 files changed

Lines changed: 60 additions & 51 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ RUN apt-get update \
1919
pdo pdo_mysql pdo_pgsql zip intl imap gd \
2020
&& rm -rf /var/lib/apt/lists/*
2121

22+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
23+
&& apt install -y nodejs \
24+
&& npm install -g yarn
25+
2226
# Enable Apache modules and set DocumentRoot to /public
2327
RUN a2enmod rewrite headers \
2428
&& sed -ri 's!/var/www/html!/var/www/html/public!g' /etc/apache2/sites-available/000-default.conf \

composer.lock

Lines changed: 52 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ services:
1919
APP_DEBUG: "0"
2020
depends_on:
2121
- db
22+
volumes:
23+
- .:/var/www/html
24+
- ./var/logs:/var/www/html/var/log
25+
- ./var/cache:/var/www/html/var/cache
2226
networks: [ appnet ]
2327

2428
# Uncomment to persist logs/cache outside container

0 commit comments

Comments
 (0)