streamline docker build
This commit is contained in:
		
							parent
							
								
									6955053b87
								
							
						
					
					
						commit
						99c461e0e0
					
				
							
								
								
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Dockerfile
									
									
									
									
									
								
							| @ -11,10 +11,9 @@ WORKDIR /app | |||||||
| RUN composer install | RUN composer install | ||||||
| 
 | 
 | ||||||
| COPY . /app/ | COPY . /app/ | ||||||
| RUN echo '=== Installing ===' && mkdir -p data/config && echo "<?php \$dsn = \"sqlite:data/shimmie.sqlite\";" > data/config/auto_install.conf.php && php index.php && \ | #RUN echo '=== Installing ===' && mkdir -p data/config && echo "<?php \$dsn = \"sqlite:data/shimmie.sqlite\";" > data/config/auto_install.conf.php && php index.php && \ | ||||||
|     echo '=== Smoke Test ===' && php index.php get-page /post/list && \ | #    echo '=== Smoke Test ===' && php index.php get-page /post/list && \ | ||||||
|     echo '=== Unit Tests ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml && \ | #    echo '=== Unit Tests ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml && \ | ||||||
|     echo '=== Coverage ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \ | #    echo '=== Coverage ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \ | ||||||
|     echo '=== Cleaning ===' && rm -rf data | #    echo '=== Cleaning ===' && rm -rf data | ||||||
| RUN chmod +x /app/tests/docker-init.sh | CMD ["/bin/sh", "/app/tests/docker-init.sh"] | ||||||
| CMD "/app/tests/docker-init.sh" |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user