mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-28 06:39:39 +00:00
Init
This commit is contained in:
commit
a0c60a93ba
106 changed files with 26925 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
### STAGE 0: FFMPEG ###
|
||||
FROM jrottenberg/ffmpeg:4.1-alpine AS ffmpeg
|
||||
# FROM alfg/ffmpeg 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
|
||||
# RUN apk add --no-cache ffmpeg
|
||||
# RUN apt-get install -y ffmpeg
|
||||
ENV NODE_ENV=production
|
||||
ENV LOG_LEVEL=INFO
|
||||
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 ["node", "index.js"]
|
||||
CMD ["npm", "start"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue