-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 929 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
FROM partlab/ubuntu
MAINTAINER Régis Gaidot <[email protected]>
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 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/echo
RUN cp /root/.go/src/github.com/carrot-ar/echo/home.html /home.html
CMD ["/usr/bin/go"]
ENTRYPOINT ["/usr/bin/go", "run", "/root/.go/src/github.com/carrot-ar/echo/echo.go"]