2019-12-11 18:12:17 +00:00
|
|
|
FROM within/go:1.13.5 AS build
|
2019-12-08 20:06:45 +00:00
|
|
|
WORKDIR /wasmcloud
|
|
|
|
ENV GOPROXY https://cache.greedo.xeserv.us
|
2019-12-10 22:25:28 +00:00
|
|
|
COPY go.mod .
|
|
|
|
COPY go.sum .
|
|
|
|
RUN go mod download
|
|
|
|
COPY . .
|
2019-12-08 20:06:45 +00:00
|
|
|
RUN GOBIN=/wasmcloud/bin go install -tags=postgres ./cmd/...
|
|
|
|
|
2019-12-11 18:12:17 +00:00
|
|
|
FROM alpine:3.10
|
|
|
|
RUN apk --no-cache add libc6-compat
|
2019-12-08 20:06:45 +00:00
|
|
|
COPY --from=build /wasmcloud/bin/ /usr/local/bin
|
|
|
|
CMD wasmcloudd
|
|
|
|
WORKDIR /wasmcloud
|
|
|
|
COPY tmpl/ /wasmcloud/tmpl/
|
|
|
|
COPY static/ /wasmcloud/static/
|
|
|
|
COPY doc/ /wasmcloud/doc/
|
|
|
|
|