Merge branch 'master' into feature/slash-commands

This commit is contained in:
Max Isom 2022-01-19 13:40:48 -06:00
commit ed4e7b5ceb
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
36 changed files with 1464 additions and 1665 deletions

View file

@ -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