Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gary-Ascuy/c1fba099b435f2aa1d9ab90386fd43ed to your computer and use it in GitHub Desktop.
Save Gary-Ascuy/c1fba099b435f2aa1d9ab90386fd43ed to your computer and use it in GitHub Desktop.
Dockefile template for Meteor application
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment