-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDockerfile
executable file
·35 lines (30 loc) · 982 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
FROM ubuntu:14.04
MAINTAINER Luis Martinez de Bartolomé (laso@barbarianware.com) Barbarian Ware
# Create conan user
RUN groupadd -f conan
RUN useradd -m -d /home/conan -s /bin/bash -c "conan on ubuntu" -g conan conan
RUN su conan
RUN echo "conan ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/conan
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN sudo add-apt-repository ppa:chris-lea/node.js
RUN sudo apt-get update
RUN sudo apt-get -y install curl
ENV USER conan
USER conan
WORKDIR /home/conan
ENV HOME /home/conan
RUN curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
RUN sudo apt-get install -y nodejs
RUN echo $(npm --version)
# Copy files and change permission
RUN mkdir /home/conan/web
ADD css /home/conan/web/css
ADD img /home/conan/web/img
ADD js /home/conan/web/js
ADD slick /home/conan/web/slick
ADD *.html /home/conan/web/
ADD web.js /home/conan/web/
ADD package.json /home/conan/web/
WORKDIR /home/conan/web
RUN npm install