Skip to content

Instantly share code, notes, and snippets.

@giordanocardillo
Created April 29, 2018 11:24
Show Gist options
  • Save giordanocardillo/f7d4a26ebe0bffc4dc25232c7325c1dc to your computer and use it in GitHub Desktop.
Save giordanocardillo/f7d4a26ebe0bffc4dc25232c7325c1dc to your computer and use it in GitHub Desktop.
Meteor Bundle Dockerfile
# Copy this Dockerfile inside application bundle directory, then build image
FROM node:8.9.4
WORKDIR /usr/src/app/myapp
COPY . .
WORKDIR /usr/src/app/myapp/programs/server
RUN set -e; \
npm i --production; \
npm i bcrypt; \
rm -rf ./npm/node_modules/bcrypt; \
cp -r ./node_modules/bcrypt ./npm/node_modules/bcrypt;
WORKDIR /usr/src/app/myapp
CMD ["node", "main.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment