Q2TG/Dockerfile

21 lines
418 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-01 15:04:15 +00:00
FROM node:17-alpine
2022-02-15 10:06:36 +00:00
COPY --from=ffmpeg / /
COPY --from=tgs / /
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
COPY prisma/ ./prisma/
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-01 15:04:15 +00:00
COPY build/ ./build/
2022-02-15 10:06:36 +00:00
CMD [ "yarn", "start" ]