From 599712fab9127013e2d89dadabd839c847730637 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 1 Jul 2018 13:20:01 -0700 Subject: rip out mage --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6380f81..1cacffa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,15 @@ -FROM xena/christine.website:1.1-47-g3228e3b +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 EXPOSE 5000 RUN apk add --no-cache bash +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 CMD /site/run.sh -- cgit v1.2.3