wasmcloud/Dockerfile

19 lines
435 B
Docker

FROM within/go:1.13.5 AS build
WORKDIR /wasmcloud
ENV GOPROXY https://cache.greedo.xeserv.us
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOBIN=/wasmcloud/bin go install -tags=postgres ./cmd/...
FROM alpine:3.10
RUN apk --no-cache add libc6-compat
COPY --from=build /wasmcloud/bin/ /usr/local/bin
CMD wasmcloudd
WORKDIR /wasmcloud
COPY tmpl/ /wasmcloud/tmpl/
COPY static/ /wasmcloud/static/
COPY doc/ /wasmcloud/doc/