joyent-portal/packages/cp-frontend/Dockerfile
2017-06-02 01:03:51 +01:00

18 lines
663 B
Docker

# todo change to 7
FROM quay.io/yldio/alpine-node-containerpilot:latest
RUN yarn add lerna@^2.0.0-rc.5 serve \
&& ./node_modules/.bin/lerna clean --yes --scope joyent-cp-frontend --include-filtered-dependencies \
&& ./node_modules/.bin/lerna bootstrap --scope joyent-cp-frontend --include-filtered-dependencies
WORKDIR /home/node/app/packages/cp-frontend
COPY packages/cp-frontend/etc/containerpilot.json /etc/
ARG CIRCLE_BRANCH
ENV REACT_APP_GQL_HOSTNAME gql-mock-server-$CIRCLE_BRANCH.svc.f4b20699-b323-4452-9091-977895896da6.eu-ams-1.triton.zone
RUN yarn run build
EXPOSE 5000
CMD ["/bin/containerpilot", "../../node_modules/.bin/serve", "-s", "build"]