mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #124 from zv0n/master
Change: Dockerfile install ffmpeg from source to support more architectures
This commit is contained in:
		
						commit
						74d2987310
					
				| @ -1,18 +1,15 @@ | |||||||
| ### STAGE 0: FFMPEG ### | ### STAGE 0: Build client ### | ||||||
| FROM jrottenberg/ffmpeg:4.1-alpine AS ffmpeg |  | ||||||
| 
 |  | ||||||
| ### STAGE 1: Build client ### |  | ||||||
| FROM node:12-alpine AS build | FROM node:12-alpine AS build | ||||||
| WORKDIR /client | WORKDIR /client | ||||||
| COPY /client /client | COPY /client /client | ||||||
| RUN npm install | RUN npm install | ||||||
| RUN npm run generate | RUN npm run generate | ||||||
| 
 | 
 | ||||||
| ### STAGE 2: Build server ### | ### STAGE 1: Build server ### | ||||||
| FROM node:12-alpine | FROM node:12-alpine | ||||||
|  | RUN apk update && apk add --no-cache --update ffmpeg | ||||||
| ENV NODE_ENV=production | ENV NODE_ENV=production | ||||||
| COPY --from=build /client/dist /client/dist | COPY --from=build /client/dist /client/dist | ||||||
| COPY --from=ffmpeg / / |  | ||||||
| COPY index.js index.js | COPY index.js index.js | ||||||
| COPY package.json package.json | COPY package.json package.json | ||||||
| COPY server server | COPY server server | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user