Last active
March 8, 2019 19:50
-
-
Save fjlopezs/01b30049dfb7ddced70cdfefbd847cb7 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
set -e | |
touch .gitignore | |
rm -f package-lock.json | |
rm -rf node_modules | |
echo '{"dependencies": {"@types/sequelize": {"version": "4.27.14", "from": "@types/[email protected]", "dependencies": {"@types/lodash": {"version": "4.14.106", "from": "@types/[email protected]"} } } } }' > npm-shrinkwrap.json | |
npm i | |
rm npm-shrinkwrap.json | |
npm i --package-lock-only | |
sed -i '' '/package-lock.json/d' ./.gitignore; | |
sed -i '' 's/COPY package.json/COPY package-lock.json package.json /' Dockerfile | |
git add package*.json | |
git add .gitignore | |
git add Dockerfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RUN
cd backend
curl -s https://gist.githubusercontent.com/fjlopezs/01b30049dfb7ddced70cdfefbd847cb7/raw/ | bash