mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Change: support more architectures in Dockerfile
This commit is contained in:
parent
ff1eeda468
commit
994eb2862e
@ -1,18 +1,15 @@
|
||||
### STAGE 0: FFMPEG ###
|
||||
FROM jrottenberg/ffmpeg:4.1-alpine AS ffmpeg
|
||||
|
||||
### STAGE 1: Build client ###
|
||||
### STAGE 0: Build client ###
|
||||
FROM node:12-alpine AS build
|
||||
WORKDIR /client
|
||||
COPY /client /client
|
||||
RUN npm install
|
||||
RUN npm run generate
|
||||
|
||||
### STAGE 2: Build server ###
|
||||
### STAGE 1: Build server ###
|
||||
FROM node:12-alpine
|
||||
RUN apk update && apk add --no-cache --update ffmpeg
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=build /client/dist /client/dist
|
||||
COPY --from=ffmpeg / /
|
||||
COPY index.js index.js
|
||||
COPY package.json package.json
|
||||
COPY server server
|
||||
|
Loading…
Reference in New Issue
Block a user