Install of libpng16 library for fix react and react with material-ui application (#1625)
* Added commands in Workspace Dockerfile for installation of libpng with configurable env argument switch * Updated documentation
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							1d9cbd7c75
						
					
				
				
					commit
					dcf6b6d9ac
				
			@@ -1683,3 +1683,30 @@ Example:
 | 
			
		||||
WORKSPACE_NPM_REGISTRY=https://registry.npm.taobao.org
 | 
			
		||||
WORKSPACE_COMPOSER_REPO_PACKAGIST=https://packagist.phpcomposer.com
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
<br>
 | 
			
		||||
 | 
			
		||||
## I get `Module build failed: Error: write EPIPE` while compiling react application
 | 
			
		||||
 | 
			
		||||
When you run `npm build` or `yarn dev` building a react application using webpack with elixir you may receive a `Error: write EPIPE` while processing .jpg images.
 | 
			
		||||
 | 
			
		||||
This is caused of an outdated library for processing **.jpg files** in ubuntu 16.04.
 | 
			
		||||
 | 
			
		||||
To fix the problem you can follow those steps
 | 
			
		||||
 | 
			
		||||
1 - Open the `.env`.
 | 
			
		||||
 | 
			
		||||
2 - Search for `WORKSPACE_INSTALL_LIBPNG` or add the key if missing.
 | 
			
		||||
 | 
			
		||||
3 - Set the value to true:
 | 
			
		||||
 | 
			
		||||
```dotenv
 | 
			
		||||
WORKSPACE_INSTALL_LIBPNG=true
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
4 - Finally rebuild the workspace image
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
docker-compose build workspace
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user