feat: Updated repo to use latest dockerfiles
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Run Unit and Integration Tests / test (push) Successful in 51s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Run Unit and Integration Tests / test (push) Successful in 51s
				
			This commit is contained in:
		
							
								
								
									
										12
									
								
								dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								dockerfile
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
FROM node:lts-slim as build
 | 
					FROM git.luke-else.co.uk/luke-else/nodejs:latest AS build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -6,15 +6,15 @@ COPY package*.json ./
 | 
				
			|||||||
RUN rm -rf node_modules
 | 
					RUN rm -rf node_modules
 | 
				
			||||||
RUN rm -rf build
 | 
					RUN rm -rf build
 | 
				
			||||||
COPY . .
 | 
					COPY . .
 | 
				
			||||||
RUN npm install
 | 
					RUN pnpm install
 | 
				
			||||||
RUN npm run build
 | 
					RUN pnpm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM node:lts-slim as run
 | 
					FROM git.luke-else.co.uk/luke-else/nodejs:latest AS run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
COPY --from=build /app/package.json ./package.json
 | 
					COPY --from=build /app/package.json ./package.json
 | 
				
			||||||
COPY --from=build /app/build ./build
 | 
					COPY --from=build /app/build ./build
 | 
				
			||||||
RUN npm install --omit=dev
 | 
					RUN pnpm install --prod
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 3000
 | 
					EXPOSE 3000
 | 
				
			||||||
ENTRYPOINT [ "npm", "run", "start" ]
 | 
					ENTRYPOINT [ "pnpm", "run", "start" ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user