chore: Update docker
This commit is contained in:
		
							parent
							
								
									13e3926ac0
								
							
						
					
					
						commit
						0f2a502521
					
				
					 2 changed files with 17 additions and 9 deletions
				
			
		|  | @ -27,6 +27,13 @@ FROM node:22 AS production-stage | |||
| 
 | ||||
| WORKDIR /app/dwengo | ||||
| 
 | ||||
| COPY package*.json ./ | ||||
| COPY backend/package.json ./backend/ | ||||
| # Backend depends on common | ||||
| COPY common/package.json ./common/ | ||||
| 
 | ||||
| RUN npm install --silent --only=production | ||||
| 
 | ||||
| # Copy static files | ||||
| 
 | ||||
| COPY ./backend/i18n ./i18n | ||||
|  | @ -37,15 +44,6 @@ COPY --from=build-stage /app/dwengo/common/dist ./common/dist | |||
| COPY --from=build-stage /app/dwengo/backend/dist ./backend/dist | ||||
| COPY --from=build-stage /app/dwengo/docs/api/swagger.json ./docs/api/swagger.json | ||||
| 
 | ||||
| COPY package*.json ./ | ||||
| COPY backend/package.json ./backend/ | ||||
| # Backend depends on common | ||||
| COPY common/package.json ./common/ | ||||
| 
 | ||||
| RUN npm install --silent --only=production | ||||
| 
 | ||||
| COPY ./backend/i18n ./backend/i18n | ||||
| 
 | ||||
| EXPOSE 3000 | ||||
| 
 | ||||
| CMD ["node", "--env-file=/app/dwengo/backend/.env", "/app/dwengo/backend/dist/app.js"] | ||||
|  |  | |||
		Reference in a new issue