mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-09 19:55:28 +01:00
32 lines
397 B
Docker
32 lines
397 B
Docker
FROM node:14-alpine AS base
|
|
|
|
# Install ffmpeg
|
|
RUN apk add --no-cache ffmpeg
|
|
|
|
WORKDIR /usr/app
|
|
|
|
COPY package* ./
|
|
|
|
# Dependencies
|
|
FROM base AS dependencies
|
|
|
|
RUN npm install
|
|
|
|
# Build app
|
|
FROM dependencies AS builder
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
# Only copy essentials
|
|
FROM base AS prod
|
|
|
|
COPY --from=builder /usr/app/dist dist
|
|
|
|
RUN npm i --only=prod
|
|
|
|
ENV DATA_DIR /data
|
|
|
|
CMD ["npm", "run", "start"]
|