mirror of
				https://github.com/teamhanko/hanko.git
				synced 2025-11-01 00:58:16 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			284 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			284 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # pull official base image
 | |
| FROM node:16-alpine
 | |
| 
 | |
| # set working directory
 | |
| WORKDIR /app
 | |
| 
 | |
| # add `/app/node_modules/.bin` to $PATH
 | |
| ENV PATH /app/node_modules/.bin:$PATH
 | |
| 
 | |
| # install app dependencies
 | |
| COPY package.json ./
 | |
| RUN npm install
 | |
| 
 | |
| # add app
 | |
| COPY . ./
 | |
| 
 | |
| # start app
 | |
| CMD ["npm", "start"]
 | 
