This repository was archived by the owner on Sep 4, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:14.04
2+ MAINTAINER Yann Malet <
[email protected] >
3+
4+ RUN locale-gen en_US.UTF-8
5+ ENV LANG en_US.UTF-8
6+ ENV LANGUAGE en_US:en
7+ ENV LC_ALL en_US.UTF-8
8+ ENV PATH /usr/src/go/bin:$PATH
9+ ENV GOPATH /go
10+ ENV PATH /go/bin:$PATH
11+ ENV GOLANG_VERSION 1.3.1
12+
13+
14+ # SCMs for "go get", gcc for cgo
15+ RUN DEBIAN_FRONTEND=noninteractive apt-get update
16+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
17+ ca-certificates curl gcc libc6-dev \
18+ bzr git mercurial
19+ RUN rm -rf /var/lib/apt/lists/*
20+ RUN curl -sSL http://golang.org/dl/go$GOLANG_VERSION.src.tar.gz | tar -v -C /usr/src -xz
21+
22+ RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
23+
24+ RUN mkdir -p /go/src
25+ WORKDIR /go
26+
27+ ENV GOPACKAGE github.com/BotBotMe/botbot-eventsource
28+ # Copy the local package files to the container's workspace.
29+ ADD . /go/src/$GOPACKAGE
30+
31+ # Build the $GOPACKAGE command inside the container.
32+ # (You may fetch or manage dependencies here,
33+ # either manually or with a tool like "godep".)
34+ RUN go get $GOPACKAGE
35+
36+ ENTRYPOINT /go/bin/botbot-eventsource
37+
38+ # Document that the service listens on port 3000
39+ EXPOSE 3000
40+
41+
42+
You can’t perform that action at this time.
0 commit comments