Update Dockerfile
This commit is contained in:
		
							parent
							
								
									7bde1ca684
								
							
						
					
					
						commit
						4b06313caa
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -11,15 +11,17 @@ RUN npm install | ||||||
| # Copy the rest of your application files. | # Copy the rest of your application files. | ||||||
| COPY . . | COPY . . | ||||||
| 
 | 
 | ||||||
| # Build your application. |  | ||||||
| RUN npm run build |  | ||||||
| 
 |  | ||||||
| ARG POCKETBASE_URL | ARG POCKETBASE_URL | ||||||
| ARG PORT=4321 | ARG PORT=4321 | ||||||
| # Set environment variables and expose the appropriate port. | # Set environment variables and expose the appropriate port. | ||||||
| ENV HOST=0.0.0.0 | ENV HOST=0.0.0.0 | ||||||
| ENV PORT=${PORT} | ENV PORT=${PORT} | ||||||
| ENV POCKETBASE_URL=${POCKETBASE_URL} | ENV POCKETBASE_URL=${POCKETBASE_URL} | ||||||
|  | 
 | ||||||
|  | # Build your application. | ||||||
|  | RUN npm run build | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| EXPOSE ${PORT} | EXPOSE ${PORT} | ||||||
| 
 | 
 | ||||||
| # Define the command to run your application. | # Define the command to run your application. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue