Merge branch 'addOpaToBuild' into 'main'
add opa to build See merge request v3/service/auth!21
This commit is contained in:
		
						commit
						7890126580
					
				| 
						 | 
					@ -43,6 +43,9 @@ COPY --chown=node:node . .
 | 
				
			||||||
# Copy prisma (needed for migrations)
 | 
					# Copy prisma (needed for migrations)
 | 
				
			||||||
COPY --chown=node:node ./prisma prisma
 | 
					COPY --chown=node:node ./prisma prisma
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Copy policies
 | 
				
			||||||
 | 
					COPY --chown=node:node ./opa opa
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run the build command which creates the production bundle
 | 
					# Run the build command which creates the production bundle
 | 
				
			||||||
RUN npm run build
 | 
					RUN npm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,8 +71,8 @@ COPY --chown=node:node package*.json ./
 | 
				
			||||||
# Copy the bundled code from the build stage to the production image
 | 
					# Copy the bundled code from the build stage to the production image
 | 
				
			||||||
COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules
 | 
					COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules
 | 
				
			||||||
COPY --chown=node:node --from=build /usr/src/app/prisma ./prisma
 | 
					COPY --chown=node:node --from=build /usr/src/app/prisma ./prisma
 | 
				
			||||||
 | 
					COPY --chown=node:node --from=build /usr/src/app/opa ./opa
 | 
				
			||||||
COPY --chown=node:node --from=build /usr/src/app/dist ./dist
 | 
					COPY --chown=node:node --from=build /usr/src/app/dist ./dist
 | 
				
			||||||
COPY --chown=node:node ./opa opa
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Start the server using the production build
 | 
					# Start the server using the production build
 | 
				
			||||||
CMD [ "node", "dist/main.js" ]
 | 
					CMD [ "node", "dist/main.js" ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue