-
-
Save sampaiodiego/d4cf97cf0729b664a8d550dbea50900b to your computer and use it in GitHub Desktop.
# creates a nodejs app bundle | |
meteor build --directory /tmp/rocketchat-build | |
# create docker image | |
cp Dockerfile /tmp | |
cd /tmp/rocketchat-build | |
docker build -t rocketchat:custombuild . | |
# run | |
docker run --name rocketchat-custombuild -p 3000:3000 --env MONGO_URL=mongodb://192.168.0.6:27017/demo --env MONGO_OPLOG_URL=mongodb://192.168.0.6:27017/local -d rocketchat:custombuild |
FROM node:0.10 | |
ADD . /app | |
RUN set -x \ | |
&& cd /app/bundle/programs/server/ \ | |
&& npm install \ | |
&& npm cache clear | |
WORKDIR /app/bundle | |
ENV PORT=3000 \ | |
ROOT_URL=http://localhost:3000 | |
EXPOSE 3000 | |
CMD ["node", "main.js"] |
this does not even works anymore
@sampaiodiego where i can find the correct instruction to build a custom docker image ?
it's this correct ?
git clone https://github.com/RocketChat/Rocket.Chat
cd Rocket.Chat
meteor npm i
meteor build --directory /tmp/build
cp .docker/Dockerfile /tmp/build
cd /tmp/build/
docker build -t rocketchat .
yes, it seems correct.. the best place right now is to look at the CI file: https://github.com/RocketChat/Rocket.Chat/blob/develop/.circleci/config.yml
yes, it seems correct.. the best place right now is to look at the CI file: https://github.com/RocketChat/Rocket.Chat/blob/develop/.circleci/config.yml
Hi Diego, can you provide a new link to build my own docker image? Thanks
yes, it seems correct.. the best place right now is to look at the CI file: https://github.com/RocketChat/Rocket.Chat/blob/develop/.circleci/config.yml
Hi Diego, can you provide a new link to build my own docker image? Thanks
This is working for me (Tested under macOS)
#!/bin/sh
meteor npm install --platform=linux --arch=x64
meteor build --server-only --directory /tmp/rocketchat-build --architecture os.linux.x86_64
cp .docker/Dockerfile /tmp/rocketchat-build
This is trying to use node 0.10, better to refer docker file under .docker dir.