2017-01-25 17:49:05 +02:00
|
|
|
FROM quay.io/yldio/alpine-node-containerpilot:6.9.4
|
2017-01-03 17:46:20 +02:00
|
|
|
ARG NPM_TOKEN
|
|
|
|
ARG CIRCLE_BUILD_NUM
|
|
|
|
ENV NPM_TOKEN ${NPM_TOKEN}
|
|
|
|
ENV CIRCLE_BUILD_NUM ${CIRCLE_BUILD_NUM}
|
|
|
|
RUN echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
2017-01-05 12:38:53 +02:00
|
|
|
RUN NODE_ENV=production make compile
|
2017-01-03 17:46:20 +02:00
|
|
|
RUN npm version 0.0.1-${CIRCLE_BUILD_NUM}
|
|
|
|
RUN npm publish --tag alpha --access public
|