mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
16 lines
532 B
Docker
16 lines
532 B
Docker
# build stage
|
|
FROM golang:1.10-alpine AS build-env
|
|
RUN apk --no-cache add build-base git bzr mercurial gcc
|
|
ENV D=/go/src/github.com/fnproject/fn
|
|
ADD . $D
|
|
RUN cd $D/cmd/fnserver && go build -o fn-alpine && cp fn-alpine /tmp/
|
|
|
|
# final stage: the local fnproject/dind:latest will be either built afresh or
|
|
# whatever is the latest from master, depending on whether we're releasing
|
|
# a newer cut.
|
|
FROM fnproject/dind:latest
|
|
WORKDIR /app
|
|
COPY --from=build-env /tmp/fn-alpine /app/fnserver
|
|
ENV FN_NODE_TYPE=pure-runner
|
|
CMD ["./fnserver"]
|