add 0-downtime checks
This commit is contained in:
parent
be895c8ef5
commit
da4aa06f3c
|
@ -0,0 +1,2 @@
|
||||||
|
tulpaforce.tk:80/ tulpa
|
||||||
|
tulpaforce.tk:80/robots.txt Disallow
|
|
@ -1,4 +1,4 @@
|
||||||
FROM xena/go:1.10
|
FROM xena/go:1.10 AS build
|
||||||
RUN apk --no-cache add make git
|
RUN apk --no-cache add make git
|
||||||
RUN mkdir -p /usr/local/src \
|
RUN mkdir -p /usr/local/src \
|
||||||
&& git clone https://github.com/jroimartin/sw /usr/local/src/sw \
|
&& git clone https://github.com/jroimartin/sw /usr/local/src/sw \
|
||||||
|
@ -19,6 +19,8 @@ RUN cd /root/go/src/git.xeserv.us/xena/tulpaforce.tk/cmd/sserver \
|
||||||
&& GOBIN=/usr/local/bin go install
|
&& GOBIN=/usr/local/bin go install
|
||||||
|
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
COPY --from=0 /usr/local/bin/sserver /tftk
|
|
||||||
|
COPY CHECKS /app/CHECKS
|
||||||
|
COPY --from=build /usr/local/bin/sserver /tftk
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD /tftk
|
CMD /tftk
|
||||||
|
|
Loading…
Reference in New Issue