2018-07-01 20:20:01 +00:00
|
|
|
FROM xena/go:1.10 AS build
|
|
|
|
COPY . /root/go/src/github.com/Xe/site
|
2018-07-01 20:36:09 +00:00
|
|
|
RUN CGO_ENABLED=0 GOBIN=/root go install github.com/Xe/site/cmd/site
|
2018-07-01 20:20:01 +00:00
|
|
|
|
|
|
|
FROM xena/alpine
|
2017-12-13 19:28:48 +00:00
|
|
|
EXPOSE 5000
|
2017-12-13 19:25:30 +00:00
|
|
|
RUN apk add --no-cache bash
|
2018-07-01 20:20:01 +00:00
|
|
|
COPY --from=build /root/site /site/site
|
2018-08-13 16:58:13 +00:00
|
|
|
COPY ./static /site/static
|
2018-07-01 20:20:01 +00:00
|
|
|
COPY ./templates /site/templates
|
|
|
|
COPY ./blog /site/blog
|
2018-07-01 20:36:09 +00:00
|
|
|
COPY ./css /site/css
|
|
|
|
COPY ./run.sh /site/run.sh
|
2018-07-01 20:20:01 +00:00
|
|
|
|
2018-07-01 20:46:50 +00:00
|
|
|
HEALTHCHECK CMD wget --spider http://127.0.0.1:5000 || exit 1
|
2017-12-13 19:30:36 +00:00
|
|
|
CMD /site/run.sh
|