Files
dolt/Dockerfile
T
Brian Hendriks 66ee29542e Noms plumbing commands (#1)
* noms cat command to display the contents of an nbs file
* noms manifest command
2018-09-19 11:44:03 -07:00

25 lines
469 B
Docker

FROM golang:latest AS build
ENV NOMS_SRC=$GOPATH/src/github.com/attic-labs/noms
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV NOMS_VERSION_NEXT=1
RUN mkdir -pv $NOMS_SRC
COPY . ${NOMS_SRC}
RUN go test github.com/attic-labs/noms/...
RUN go install -v github.com/attic-labs/noms/cmd/noms
RUN cp $GOPATH/bin/noms /bin/noms
FROM alpine:latest
COPY --from=build /bin/noms /bin/noms
VOLUME /data
EXPOSE 8000
ENV NOMS_VERSION_NEXT=1
ENTRYPOINT [ "noms" ]
CMD ["serve", "/data"]