Q2TG/Dockerfile

26 lines
480 B
Docker
Raw Normal View History

2022-02-15 10:06:36 +00:00
FROM jrottenberg/ffmpeg:4.1-alpine AS ffmpeg
FROM ghcr.io/clansty/tgs-to-gif:latest AS tgs
2022-03-05 12:57:54 +00:00
FROM node:17-alpine AS build
2022-02-15 10:06:36 +00:00
WORKDIR /app
2022-03-01 15:04:15 +00:00
COPY package.json yarn.lock .yarnrc.yml ./
2022-02-15 10:06:36 +00:00
COPY .yarn/ ./.yarn/
2022-03-01 15:04:15 +00:00
2022-02-15 10:06:36 +00:00
RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 &&\
yarn install &&\
apk del .build-deps
2022-03-05 12:57:54 +00:00
FROM node:17-alpine
COPY --from=ffmpeg / /
COPY --from=tgs / /
COPY --from=build /app/ /app/
COPY prisma/ ./prisma/
2022-03-01 15:04:15 +00:00
COPY build/ ./build/
2022-03-05 12:57:54 +00:00
2022-02-15 10:06:36 +00:00
CMD [ "yarn", "start" ]