3
0
corteza/Dockerfile.corteza-server-compose
2020-01-19 11:05:03 +01:00

28 lines
471 B
Docker

## builder image
FROM cortezaproject/corteza-server-builder:latest AS builder
WORKDIR /corteza/src
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
ENV CORREDOR_ADDR corredor:80
VOLUME /data
EXPOSE 80
ENTRYPOINT ["/bin/corteza-server-compose"]
CMD ["serve-api"]