A realtime, decentralized, offline-first, graph database engine

Dockerfile 912B

123456789101112131415161718192021222324252627
  1. FROM alpine:latest
  2. # Build-time metadata as defined at http://label-schema.org
  3. ARG BUILD_DATE
  4. ARG VCS_REF
  5. ARG VCS_URL
  6. ARG VERSION
  7. LABEL org.label-schema.build-date=$BUILD_DATE \
  8. org.label-schema.name="Gun - Offline First, Javascript Graph Database" \
  9. org.label-schema.url="http://gun.js.org" \
  10. org.label-schema.vcs-ref=$VCS_REF \
  11. org.label-schema.vcs-url=$VCS_URL \
  12. org.label-schema.vendor="The Gun Database Team" \
  13. org.label-schema.version=$VERSION \
  14. org.label-schema.schema-version="1.0"
  15. # org.label-schema.description="Let it be pulled from Readme.md..." \
  16. WORKDIR /app
  17. ADD . .
  18. ENV NPM_CONFIG_LOGLEVEL warn
  19. RUN apk update && apk upgrade \
  20. && apk add --no-cache ca-certificates nodejs-npm \
  21. && apk add --no-cache --virtual .build-dependencies python make g++ \
  22. && npm install \
  23. && apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm*
  24. EXPOSE 8080
  25. EXPOSE 8765
  26. CMD ["npm","start"]