add 0-downtime checks

This commit is contained in:
Cadey Ratio 2018-06-13 01:38:02 +00:00
parent be895c8ef5
commit da4aa06f3c
2 changed files with 6 additions and 2 deletions

2
CHECKS Normal file
View File

@ -0,0 +1,2 @@
tulpaforce.tk:80/ tulpa
tulpaforce.tk:80/robots.txt Disallow

View File

@ -1,4 +1,4 @@
FROM xena/go:1.10
FROM xena/go:1.10 AS build
RUN apk --no-cache add make git
RUN mkdir -p /usr/local/src \
&& 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
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
CMD /tftk