forked from akatrevorjay/doxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (26 loc) · 777 Bytes
/
Dockerfile
File metadata and controls
38 lines (26 loc) · 777 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
33
34
35
36
37
38
FROM golang:1.10
RUN apt-get update -qq \
&& apt-get install -qqy git traceroute \
&& apt-get clean
RUN go get -u -v github.com/golang/lint/golint \
&& go get -u -v github.com/Masterminds/glide \
&& go get -u -v github.com/akatrevorjay/rerun
ENV GOPACKAGE=github.com/akatrevorjay/doxy \
APP_ROOT=/app
WORKDIR /go/src/$GOPACKAGE
ENV PATH="$APP_ROOT/image/bin:$PATH" \
CA_PATH=/ca
COPY glide.* ./
RUN glide i
RUN ln -sfvr . "$APP_ROOT" \
&& mkdir -pv "$CA_PATH"
COPY utils utils
COPY servers servers
COPY core core
COPY *.go ./
RUN go install .
COPY image image
ENTRYPOINT ["entrypoint"]
CMD ["doxy"]
# CI docker is currently too old for this. Enable later,
#HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost/doxy-healthcheck || exit 1