mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Switch from local binary to ADD via release page
This commit is contained in:
parent
1135f2fa45
commit
9a42500deb
@ -1,6 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
COPY fwatchdog /usr/bin/
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
# Populate example here
|
# Populate example here
|
||||||
# ENV fprocess="wc -l"
|
# ENV fprocess="wc -l"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --update add nodejs
|
RUN apk --update add nodejs
|
||||||
COPY ./fwatchdog /usr/bin/
|
|
||||||
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY handler.js .
|
COPY handler.js .
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --update add nodejs
|
RUN apk --update add nodejs
|
||||||
COPY ./fwatchdog /usr/bin/
|
|
||||||
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY handler.js .
|
COPY handler.js .
|
||||||
|
@ -7,7 +7,10 @@ WORKDIR /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats
|
|||||||
COPY . /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats
|
COPY . /go/src/github.com/alexellis/faas/sample-functions/DockerHubStats
|
||||||
|
|
||||||
RUN make
|
RUN make
|
||||||
COPY fwatchdog /usr/bin/fwatchdog
|
|
||||||
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
ENV fprocess "/go/bin/DockerHubStats"
|
ENV fprocess "/go/bin/DockerHubStats"
|
||||||
|
|
||||||
CMD [ "/usr/bin/fwatchdog"]
|
CMD [ "/usr/bin/fwatchdog"]
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --update add nodejs
|
RUN apk --update add nodejs
|
||||||
COPY ./fwatchdog /usr/bin/
|
|
||||||
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY handler.js .
|
COPY handler.js .
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --update add nodejs
|
RUN apk --update add nodejs
|
||||||
COPY ./fwatchdog /usr/bin/
|
|
||||||
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY main.js .
|
COPY main.js .
|
||||||
|
@ -5,7 +5,9 @@ WORKDIR /go/src/app
|
|||||||
RUN go get -d -v
|
RUN go get -d -v
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||||
|
|
||||||
COPY fwatchdog /usr/bin/
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
# COPY fwatchdog /usr/bin/
|
||||||
|
|
||||||
ENV fprocess="/go/src/app/app"
|
ENV fprocess="/go/src/app/app"
|
||||||
CMD ["fwatchdog"]
|
CMD ["fwatchdog"]
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
|
|
||||||
COPY ./fwatchdog /usr/bin/fwatchdog
|
ADD https://github.com/alexellis/faas/releases/download/v0.1-alpha/fwatchdog /usr/bin
|
||||||
ENV fprocess "cat"
|
RUN chmod +x /usr/bin/fwatchdog
|
||||||
|
|
||||||
|
ENV fprocess "/bin/cat"
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["/usr/bin/fwatchdog"]
|
CMD ["/usr/bin/fwatchdog"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user