wasmcloud/Dockerfile

18 lines
397 B
Docker
Raw Normal View History

2019-12-08 20:06:45 +00:00
FROM xena/go:1.13.5 AS build
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/...
FROM xena/alpine
COPY --from=build /wasmcloud/bin/ /usr/local/bin
CMD wasmcloudd
WORKDIR /wasmcloud
COPY tmpl/ /wasmcloud/tmpl/
COPY static/ /wasmcloud/static/
COPY doc/ /wasmcloud/doc/