aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 2c6ee5266f978b82a67fbab068c65bb3096520d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM xena/go:1.11.1 AS build
ENV GOPROXY https://cache.greedo.xeserv.us
COPY . /site
WORKDIR /site
RUN CGO_ENABLED=0 GOBIN=/root go install -v ./cmd/site

FROM xena/alpine
EXPOSE 5000
RUN apk add --no-cache bash
COPY --from=build /root/site /site/site
COPY ./static /site/static
COPY ./templates /site/templates
COPY ./blog /site/blog
COPY ./css /site/css
COPY ./run.sh /site/run.sh
COPY ./app /app

HEALTHCHECK CMD wget --spider http://127.0.0.1:5000 || exit 1
CMD /site/run.sh