2019-03-20 16:39:19 +00:00
|
|
|
FROM xena/go:1.12.1 AS build
|
2019-01-12 02:36:34 +00:00
|
|
|
ENV GOPROXY https://cache.greedo.xeserv.us
|
2018-10-19 13:58:02 +00:00
|
|
|
COPY . /site
|
|
|
|
WORKDIR /site
|
2019-03-21 18:08:38 +00:00
|
|
|
RUN CGO_ENABLED=0 go test ./...
|
|
|
|
RUN CGO_ENABLED=0 GOBIN=/root go install ./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-12-10 16:14:00 +00:00
|
|
|
WORKDIR /site
|
|
|
|
COPY --from=build /root/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
|
2018-08-25 01:39:24 +00:00
|
|
|
COPY ./app /app
|
2019-03-21 17:37:23 +00:00
|
|
|
COPY ./app.json .
|
2019-03-27 14:31:57 +00:00
|
|
|
HEALTHCHECK CMD wget --spider http://127.0.0.1:5000/.within/health || exit 1
|
2018-12-10 16:14:00 +00:00
|
|
|
CMD ./site
|