mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Fixed machine-learning container cannot start prod
This commit is contained in:
		@@ -28,14 +28,14 @@ WORKDIR /usr/src/app
 | 
				
			|||||||
COPY package.json package-lock.json ./
 | 
					COPY package.json package-lock.json ./
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN mkdir -p /usr/src/app/dist \
 | 
					RUN mkdir -p /usr/src/app/dist \
 | 
				
			||||||
    && mkdir -p /usr/src/app/node_modules \
 | 
					  && mkdir -p /usr/src/app/node_modules \
 | 
				
			||||||
    && apt-get update \
 | 
					  && apt-get update \
 | 
				
			||||||
    && apt-get install -y ffmpeg \
 | 
					  && apt-get install -y ffmpeg \
 | 
				
			||||||
    && rm -rf /var/cache/apt/lists
 | 
					  && rm -rf /var/cache/apt/lists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=builder /usr/src/app/node_modules ./node_modules
 | 
					COPY --from=builder /usr/src/app/node_modules ./node_modules
 | 
				
			||||||
COPY --from=builder /usr/src/app/dist ./dist
 | 
					COPY --from=builder /usr/src/app/dist ./dist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN npm prune --production
 | 
					RUN npm prune --production
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CMD [ "node", "dist/main" ]
 | 
					# CMD [ "node", "dist/main" ]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +1,3 @@
 | 
				
			|||||||
# npm run typeorm migration:run
 | 
					# npm run typeorm migration:run
 | 
				
			||||||
npm run build && npm run start:prod
 | 
					# npm run start:prod
 | 
				
			||||||
 | 
					node /dist/main.js
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user