Skip to content

Instantly share code, notes, and snippets.

@fjlopezs
Last active March 8, 2019 19:50
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 fjlopezs/01b30049dfb7ddced70cdfefbd847cb7 to your computer and use it in GitHub Desktop.
Save fjlopezs/01b30049dfb7ddced70cdfefbd847cb7 to your computer and use it in GitHub Desktop.
#!/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/sequelize@4.27.14", "dependencies": {"@types/lodash": {"version": "4.14.106", "from": "@types/lodash@4.14.106"} } } } }' > 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
@fjlopezs
Copy link
Author

fjlopezs commented Mar 7, 2019

RUN
cd backend
curl -s https://gist.githubusercontent.com/fjlopezs/01b30049dfb7ddced70cdfefbd847cb7/raw/ | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment