forked from Seitenbau/SBideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-Transcoder
More file actions
34 lines (27 loc) · 880 Bytes
/
Copy pathDockerfile-Transcoder
File metadata and controls
34 lines (27 loc) · 880 Bytes
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
# ---- Base Node ----
FROM node:carbon AS base
# Create app directory
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
COPY package*.json ./
COPY yarn.lock ./
COPY preact.config.js ./
RUN yarn install
# ---- Copy Files/Build ----
FROM dependencies AS build
WORKDIR /app
COPY src /app/src
RUN yarn build
RUN yarn install --modules-folder /app/deps --production=true
# --- Release with Alpine ----
FROM node:8.9-alpine AS release
WORKDIR /app
# install new ffmpeg version using edge repositories
RUN sed -i -e 's/v[[:digit:]]\.[[:digit:]]/edge/g' /etc/apk/repositories
RUN apk del --purge alpine-baselayout; apk --update add alpine-baselayout busybox; apk upgrade --purge
RUN apk --update add ffmpeg
COPY --from=build /app/build ./build
COPY --from=build /app/deps ./node_modules
VOLUME /data /incoming
CMD ["node", "build/transcode.js", "/incoming", "/data"]