Szakdolgozat/frontend/docker.sh

14 lines
258 B
Bash

#!/usr/bin/env bash
if [ "$COMMAND" == "deploy" ]; then
npm run buildProd
npm install -g firebase-tools
firebase login --no-localhost
firebase deploy
exit 0
fi
echo "Installing packages"
npm install
echo "Running application"
npm start