Created
April 29, 2018 11:24
-
-
Save giordanocardillo/f7d4a26ebe0bffc4dc25232c7325c1dc to your computer and use it in GitHub Desktop.
Meteor Bundle Dockerfile
This file contains hidden or 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
# 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