diff options
| author | Christine Dodrill <me@christine.website> | 2018-07-01 13:20:01 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-07-01 13:20:01 -0700 |
| commit | 599712fab9127013e2d89dadabd839c847730637 (patch) | |
| tree | 2a69843e6a5fbdb69cf4c4600e5a8693a3c4a708 /Dockerfile | |
| parent | 7d8c210f1499bce3558f107402f2c7ccf8417e7d (diff) | |
| download | xesite-599712fab9127013e2d89dadabd839c847730637.tar.xz xesite-599712fab9127013e2d89dadabd839c847730637.zip | |
rip out mage
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |
