-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
71 lines (56 loc) · 1.64 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ampervue/ffmpeg
# https://github.com/ampervue/docker-fluent-ffmpeg
# https://hub.docker.com/r/dkarchmervue/fluent-ffmpeg/
MAINTAINER David Karchmer <[email protected]>
#####################################################################
#
# A Docker image with everything needed to run Moviepy scripts
#
# Image based on ampervue/ffmpeg (Ubuntu 14.04)
#
# with
# - Latest Python 3.4
# - Latest FFMPEG (built)
# - NodeJS
# - fluent-ffmpeg
#
# For more on Fluent-FFMPEG, see
#
# https://github.com/fluent-ffmpeg/node-fluent-ffmpeg
#
# plus a bunch of build/web essentials
#
#####################################################################
# Add the following two dependencies for nodejs
RUN curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
RUN apt-get update -qq && apt-get install -y --force-yes \
nodejs; \
apt-get clean
WORKDIR /usr/local/src
# Custom Builds go here
RUN npm install -g fluent-ffmpeg
# Remove all tmpfile and cleanup
# =================================
WORKDIR /usr/local/
RUN rm -rf /usr/local/src
RUN apt-get autoremove -y; apt-get clean -y
# =================================
# Setup a working directory to allow for
# docker run --rm -ti -v ${PWD}:/work ...
# =======================================
WORKDIR /work
# Let's make sure the app built correctly
RUN ffmpeg -buildconf
# Make sure Node.js is installed
RUN node -v
RUN npm -v
#Create app dir
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
#Install Dependencies
COPY package.json /usr/src/app
RUN npm install
#Bundle app source
COPY . /usr/src/app
EXPOSE 3000
CMD [ "node", "app.js" ]