Last active
April 29, 2017 22:31
-
-
Save Gary-Ascuy/ce915ad538908d66da793ee9dd04e0b4 to your computer and use it in GitHub Desktop.
Docker + Meteor
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
# create a docker image from Dockerfile | |
docker build -t garyascuy/todos . | |
# push "garyascuy/todos" image to https://hub.docker.com/ | |
docker push garyascuy/todos |
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
# Dockerfile for Meteor App | |
FROM node:4.8.2-alpine | |
MAINTAINER Gary Ascuy <gary.ascuy@gmail.com> | |
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \ | |
NODE_ENV=production \ | |
ROOT_URL=http://localhost:3000 \ | |
PORT=3000 | |
WORKDIR /root/app/bundle | |
ADD todos.tar.gz /root/app | |
RUN apk --update add ${BUILD_PACKAGES} \ | |
&& (cd programs/server/ && npm install --unsafe-perm) \ | |
&& apk --update del ${BUILD_PACKAGES} | |
EXPOSE 3000 | |
CMD node main.js |
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
# create meteor build for linux | |
meteor build ../build --server-only --architecture os.linux.x86_64 |
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
# install meteor | |
curl https://install.meteor.com/ | sh | |
# clone meteor todos repository using git | |
git clone https://github.com/dockercochabamba/todos.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment