mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-13 04:51:35 +02:00
Merge branch 'master' into feature/slash-commands
This commit is contained in:
commit
ed4e7b5ceb
36 changed files with 1464 additions and 1665 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,7 +1,9 @@
|
|||
FROM node:16.13.0-alpine AS base
|
||||
FROM node:16.13.0 AS base
|
||||
|
||||
# Install ffmpeg and build dependencies
|
||||
RUN apk add --no-cache ffmpeg python2 make g++
|
||||
# Install ffmpeg
|
||||
RUN apt-get update && \
|
||||
apt-get install -y ffmpeg && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/app
|
||||
|
||||
|
@ -22,12 +24,16 @@ FROM dependencies AS builder
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
RUN yarn prisma generate && yarn build
|
||||
|
||||
# Only copy essentials
|
||||
FROM base AS prod
|
||||
|
||||
COPY --from=builder /usr/app/dist dist
|
||||
COPY --from=builder /usr/app/schema.prisma .
|
||||
COPY --from=builder /usr/app/migrations migrations
|
||||
|
||||
RUN yarn prisma generate
|
||||
|
||||
ENV DATA_DIR /data
|
||||
ENV NODE_ENV production
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue