-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
46 lines (35 loc) · 925 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
# Pull base image.
FROM library/ubuntu
# TODO
# Change maintainer to LABEL and add all authors
MAINTAINER Ronald Eddings <ronaldeddings@gmail.com>
RUN apt-get update
#
# Python
#
RUN apt-get install -y python python-dev python-pip python-virtualenv git
#
# Node.js and NPM
#
RUN apt-get install -y nodejs nodejs-legacy npm git --no-install-recommends
RUN ln -s /dev/null /dev/raw1394
#
# Install dependencies required by node-canvas
#
RUN apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ sudo
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN git clone https://github.com/apg-intel/ipv6tools.git
WORKDIR /usr/src/app/ipv6tools
RUN git checkout dev
# Install project dependencies
RUN npm run setup
EXPOSE 8080
# Start Project
CMD [ "npm", "run", "start" ]
#
# Clear cache
#
RUN apt-get autoclean && apt-get clean
RUN rm -rf /var/lib/apt/lists/*