Skip to content

Commit bcb7491

Browse files
committed
Added support to conditionally install Prestissimo
1 parent ca413ed commit bcb7491

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/logs
1+
/logs
2+
.env

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ services:
153153
### Workspace Utilities Container ###########################
154154

155155
workspace:
156-
build: ./workspace
156+
build:
157+
context: ./workspace
158+
args:
159+
INSTALL_PRESTISSIMO: ${INSTALL_PRESTISSIMO}
157160
volumes_from:
158161
- application
159162
tty: true

workspace/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,9 @@ RUN . ~/.bashrc
8888
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
8989

9090
WORKDIR /var/www/laravel
91+
92+
# Install optional software
93+
ARG INSTALL_PRESTISSIMO=false
94+
RUN if [ "$INSTALL_PRESTISSIMO" = true ] ; then \
95+
composer global require "hirak/prestissimo:^0.3"; \
96+
fi

0 commit comments

Comments
 (0)