Last active
May 21, 2021 18:54
-
-
Save sampaiodiego/d4cf97cf0729b664a8d550dbea50900b to your computer and use it in GitHub Desktop.
Rocket.Chat build and Docker image creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/RocketChat/Rocket.Chat/blob/629c56d2a24e78f9c7514a524b311d70e2a04d9e/.github/workflows/build_and_test.yml#L167
This is working for me (Tested under macOS)