Move away from using ulexus/meteor:build
kaihendry opened this issue · comments
We should focus on using our Dockerfile, so that means moving away from using s3://unee-t-media/frontend/commit/${COMMIT}.tar.gz
that:
- .travis.yml {demo,prod}
- buildspec.yml dev
Currently use.
We have a workable Dockerfile, with thanks to CyCoreSystems/docker-meteor#62
FROM node:8 AS builder
RUN curl -sL https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh
RUN mkdir /src /bundle
RUN chown -R node /src /bundle
USER node:node
WORKDIR /src
COPY --chown=node:node . .
RUN meteor npm install --production
RUN meteor build --architecture os.linux.x86_64 --directory /bundle
RUN cd /bundle/bundle/programs/server && npm install
FROM node:8-slim
USER node:node
COPY --from=builder /bundle /app
WORKDIR /app/bundle
ENV PORT 3000
EXPOSE 3000
CMD ["node", "./main.js"]
Though integrating this into our CI is a little painful. We probably need a new repo on https://hub.docker.com/r/uneet/
This is implemented in dev 37c0b54