-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 1.01 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
FROM partlab/ubuntu
MAINTAINER Régis Gaidot <regis@partlab.co>
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No
ENV LANG en_US.UTF-8
ENV GOVERSION 1.9
ENV GOROOT /opt/go
ENV GOPATH /root/.go
RUN cp private_key ~/.ssh/id_rsa && eval "$(ssh-agent -s)" && ssh-add -K ~/.ssh/id_rsa
RUN cd /opt && wget https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz && \
tar zxf go${GOVERSION}.linux-amd64.tar.gz && rm go${GOVERSION}.linux-amd64.tar.gz && \
ln -s /opt/go/bin/go /usr/bin/ && \
mkdir $GOPATH
RUN go get github.com/gorilla/websocket
RUN go get github.com/sirupsen/logrus
RUN cd /root/.go/src/github.com/ && mkdir carrot-ar
RUN cd /root/.go/src/github.com/carrot-ar/ && git clone https://github.com/carrot-ar/carrot
RUN cd /root/.go/src/github.com/carrot-ar/ && git clone https://github.com/carrot-ar/scribbles
RUN cp /root/.go/src/github.com/carrot-ar/scribbles/home.html /home.html
CMD ["/usr/bin/go"]
ENTRYPOINT ["/usr/bin/go", "run", "/root/.go/src/github.com/carrot-ar/scribbles/scribbles.go"]