mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			325 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			325 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM node:18
 | |
| RUN apt update && apt install -y\
 | |
|     git\
 | |
|     && apt clean
 | |
| WORKDIR /app/townsquare
 | |
| COPY package*.json .
 | |
| RUN npm rebuild
 | |
| RUN npm clean-install
 | |
| # npm rebuild avoids having misconfigurations if npm install has been run in the folder from windows before building the docker image
 | |
| COPY . .
 | |
| CMD ["npm","run","serve"]
 |