site/Dockerfile

16 lines
392 B
Docker
Raw Normal View History

2018-07-01 20:20:01 +00:00
FROM xena/go:1.10 AS build
COPY . /root/go/src/github.com/Xe/site
RUN GOBIN=/root go build github.com/Xe/site
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
COPY ./templates /site/templates
COPY ./blog /site/blog
COPY ./run.sh /site.sh
COPY ./static /site/static
HEALTHCHECK CMD curl --fail http://127.0.0.1:5000 || exit 1
2017-12-13 19:30:36 +00:00
CMD /site/run.sh