27 lines
477 B
Docker
27 lines
477 B
Docker
## builder image
|
|
FROM cortezaproject/corteza-server-builder:latest AS builder
|
|
|
|
WORKDIR /go/src/github.com/cortezaproject/corteza-server
|
|
|
|
COPY . .
|
|
|
|
RUN scripts/builder-make-bin.sh compose /tmp/corteza-server-compose
|
|
|
|
## == target image ==
|
|
|
|
FROM alpine:3.7
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
COPY --from=builder /tmp/corteza-server-compose /bin
|
|
|
|
ENV COMPOSE_STORAGE_PATH /data/compose
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/bin/corteza-server-compose"]
|
|
|
|
CMD ["serve-api"]
|
|
|