Improved docker compose integration
This commit is contained in:
		
							parent
							
								
									f2804ad5ce
								
							
						
					
					
						commit
						bb2881e023
					
				@ -10,7 +10,11 @@ RUN npm run build
 | 
				
			|||||||
FROM node:lts-alpine
 | 
					FROM node:lts-alpine
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
COPY package*.json ./
 | 
					COPY package*.json ./
 | 
				
			||||||
COPY .env ./
 | 
					
 | 
				
			||||||
 | 
					ARG SUNO_COOKIE
 | 
				
			||||||
 | 
					RUN if [ -z "$SUNO_COOKIE" ]; then echo "SUNO_COOKIE is not set" && exit 1; fi
 | 
				
			||||||
 | 
					ENV SUNO_COOKIE=${SUNO_COOKIE}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN npm install --only=production
 | 
					RUN npm install --only=production
 | 
				
			||||||
COPY --from=builder /src/.next ./.next
 | 
					COPY --from=builder /src/.next ./.next
 | 
				
			||||||
EXPOSE 3000
 | 
					EXPOSE 3000
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,10 @@ version: '3'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  suno-api:
 | 
					  suno-api:
 | 
				
			||||||
    build: .
 | 
					    build:
 | 
				
			||||||
 | 
					      context: .
 | 
				
			||||||
 | 
					      args:
 | 
				
			||||||
 | 
					        SUNO_COOKIE: ${SUNO_COOKIE}
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./public:/app/public
 | 
					      - ./public:/app/public
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user