-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (28 loc) · 964 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
# Taken from https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
FROM node:carbon
RUN echo OS info
RUN cat /etc/os-release
# Install ffmpeg
# https://superuser.com/a/1082860
## Adding backports source
RUN echo Adding jessie-backports source
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
## Installing ffmpeg
RUN echo Installing ffmpeg
RUN apt-get update
RUN apt-get install -y --force-yes ffmpeg
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm install --only=production
# Bundle app source
COPY . .
#EXPOSE 8080
#https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html
#https://docs.docker.com/engine/reference/run/#env-environment-variables
CMD [ "npm", "start" ]