mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 08:34:10 +01:00
22 lines
478 B
Docker
22 lines
478 B
Docker
|
### STAGE 0: FFMPEG ###
|
||
|
FROM jrottenberg/ffmpeg:4.1-alpine AS ffmpeg
|
||
|
|
||
|
### STAGE 1: Build client ###
|
||
|
FROM node:12-alpine AS build
|
||
|
WORKDIR /client
|
||
|
COPY /client /client
|
||
|
RUN npm install
|
||
|
RUN npm run generate
|
||
|
|
||
|
### STAGE 2: Build server ###
|
||
|
FROM node:12-alpine
|
||
|
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
|
||
|
RUN npm install --production
|
||
|
EXPOSE 80
|
||
|
CMD ["npm", "start"]
|