forked from surebert/docker-ffmpeg-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (31 loc) · 948 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
FROM jrottenberg/ffmpeg:4.2-centos
MAINTAINER Paul Visco <[email protected]>
#####################################################################
#
# A Docker image to convert audio and video for web using web API
#
# with
# - Latest FFMPEG (built)
# - NodeJS
# - fluent-ffmpeg
#
# For more on Fluent-FFMPEG, see
#
# https://github.com/fluent-ffmpeg/node-fluent-ffmpeg
#
#####################################################################
# Add the following two dependencies for nodejs
RUN curl -sL https://rpm.nodesource.com/setup_11.x | bash - && yum install -y git nodejs && yum update -y && yum clean all
# Custom Builds go here
RUN npm install -g fluent-ffmpeg
#Create app dir
RUN mkdir -p /usr/src/app/uploads
WORKDIR /usr/src/app
#Install Dependencies
COPY package.json /usr/src/app
RUN npm install --verbose
#Bundle app source
COPY . /usr/src/app
EXPOSE 3000
ENTRYPOINT []
CMD [ "node", "app.js" ]