-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 778 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 778 Bytes
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
FROM deis/base:latest
MAINTAINER OpDemand <info@opdemand.com>
# install go dependencies
RUN apt-get update && apt-get install -yq \
git \
bzr \
mercurial \
--no-install-recommends
# install go runtime
RUN wget -qO- https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz | tar -C /usr/local -xz
# prepare go environment
RUN mkdir -p /go
ENV GOPATH /go
ENV PATH /usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/go/bin
# create /var/log/deis for holding logs (access via bind mount)
RUN mkdir -p /var/log/deis
# prepare execution environment
WORKDIR /go/src/github.com/deis/deis/logger
CMD ["/app/bin/boot"]
EXPOSE 514
ADD bin/ /app/bin/
ADD . /go/src/github.com/deis/deis/logger
# install dependencies
RUN go get ./syslog
RUN go install -v ./syslogd