-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (26 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM jrottenberg/ffmpeg:4.4-ubuntu2004 as ffmpeg-base
## To get apt to a working state we first have to delete the old nVidia CUDA key and apply the new one
#RUN apt-key del 7fa2af80
#RUN apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
#RUN apt-get -o APT::Get::AllowUnauthenticated=true install cuda-keyring
#RUN rm /etc/apt/sources.list.d/cuda.list
RUN apt-get update && apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null
RUN echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn nodejs
FROM ffmpeg-base as deps
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn --quiet
RUN yarn fetch-api
RUN yarn generate
FROM deps as builder
COPY --from=deps /app/node_modules node_modules
COPY --from=deps /app/src/generated src/generated
COPY . .
RUN yarn build
FROM builder
RUN mkdir -p /app/tmp-upload
ENTRYPOINT ["/usr/bin/yarn"]
CMD ["run", "start"]