-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (23 loc) · 656 Bytes
/
Dockerfile
File metadata and controls
35 lines (23 loc) · 656 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
FROM golang:1.13
RUN apt-get update -qq \
&& apt-get install -qqy git traceroute \
&& apt-get clean
RUN go get -u -v github.com/codeskyblue/fswatch
ENV GOPACKAGE=github.com/akatrevorjay/doxy \
APP_ROOT=/app
WORKDIR $APP_ROOT
ENV PATH="$APP_ROOT/image/bin:$PATH" \
CA_PATH=/ca
RUN mkdir -pv "$CA_PATH"
COPY go.mod go.sum ./
COPY vendor vendor
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