forked from harald-lang/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1012 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
FROM ubuntu:14.04
MAINTAINER Harald Lang <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q -y update
RUN apt-get -q -y upgrade
RUN apt-get -q -y install curl
RUN curl -L https://get.rvm.io | bash -s stable --ruby
#RUN mkdir /var/run/sshd
#RUN echo 'root:password' > /root/passwdfile
#RUN cat /root/passwdfile | chpasswd
RUN apt-get -q -y install build-essential
RUN apt-get -q -y install git-core
# Install node
#RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install software-properties-common python-software-properties python g++ make vim
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get -y install nodejs
RUN npm install -g bower
#RUN apt-get -y install sudo openssh-server
RUN apt-get -q -y install busybox-syslogd tmux
# Install user
RUN useradd -m user
# Install source
ADD . /src
#EXPOSE 22 8080
EXPOSE 8080
ENTRYPOINT ["/src/startup.sh"]