fix(backend): Build common in Docker
This commit is contained in:
		
							parent
							
								
									6c9c8d782d
								
							
						
					
					
						commit
						4b1c343592
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -6,6 +6,7 @@ WORKDIR /app | ||||||
| 
 | 
 | ||||||
| COPY package*.json ./ | COPY package*.json ./ | ||||||
| COPY backend/package.json ./backend/ | COPY backend/package.json ./backend/ | ||||||
|  | COPY common/package.json ./common/ | ||||||
| 
 | 
 | ||||||
| RUN npm install --silent | RUN npm install --silent | ||||||
| 
 | 
 | ||||||
|  | @ -14,10 +15,11 @@ RUN npm install --silent | ||||||
| # Root tsconfig.json | # Root tsconfig.json | ||||||
| COPY tsconfig.json ./ | COPY tsconfig.json ./ | ||||||
| 
 | 
 | ||||||
| WORKDIR /app/backend | COPY backend ./backend | ||||||
|  | COPY common ./common | ||||||
|  | COPY docs ./docs | ||||||
| 
 | 
 | ||||||
| COPY backend ./ | WORKDIR /app/backend | ||||||
| COPY docs /app/docs |  | ||||||
| 
 | 
 | ||||||
| RUN npm run build | RUN npm run build | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue