-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (23 loc) · 844 Bytes
/
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
40
41
42
43
44
45
46
47
FROM ubuntu:24.04
RUN /usr/bin/apt-get update
RUN /usr/bin/apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN /usr/bin/apt-get update
RUN /usr/bin/apt-get upgrade -y
RUN /usr/bin/apt-get install -y nodejs ffmpeg
WORKDIR /home/app
COPY src src
COPY package*.json .
RUN npm install
RUN mkdir -p video/outputs
RUN chmod +x src/script.js
ENV AWS_TMP_ACCESS_KEY="$AWS_TMP_ACCESS_KEY"
ENV AWS_TMP_SECRET_KEY="$AWS_TMP_SECRET_KEY"
ENV AWS_HLS_ACCESS_KEY="$AWS_HLS_ACCESS_KEY"
ENV AWS_HLS_SECRET_KEY="$AWS_HLS_SECRET_KEY"
ENV AWS_TMP_BUCKET_NAME="$AWS_TMP_BUCKET_NAME"
ENV AWS_TMP_BUCKET_REGION="$AWS_TMP_BUCKET_REGION"
ENV AWS_HLS_BUCKET_NAME="$AWS_HLS_BUCKET_NAME"
ENV AWS_HLS_BUCKET_REGION="$AWS_HLS_BUCKET_REGION"
ENV INPUT_KEY="$INPUT_KEY"
CMD [ "node", "src/script.js" ]