3
0

Merge branch 'master' of ssh://github.com/crusttech/crust

This commit is contained in:
Tit Petric
2018-07-06 10:57:26 +00:00
2 changed files with 27 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
*/templates
*/types
*/docs
*/db
+23
View File
@@ -0,0 +1,23 @@
FROM golang:1.10-alpine AS builder
WORKDIR /go/src/github.com/crusttech/crust
ENV CGO_ENABLED=0
COPY . .
RUN mkdir /build; \
find cmd -type d -mindepth 1 -maxdepth 1 | while read CMDPATH; do \
go build -o /build/$(basename ${CMDPATH}) ${CMDPATH}/*.go; \
done;
FROM alpine:3.7
ENV PATH="/crust:{$PATH}"
WORKDIR /crust
# @todo copy crm/types, migrations
COPY --from=builder ./build/* /crust/
CMD ["/bin/echo", "Run of the crust commands: sam, crm"]