title: Meteor Up Docker and Graphicsmagick
body: <p>I'm looking for how to install Graphicsmagick at Meteor Up Docker.</p>
  
  <p>I found this solution (<a href="https://stackoverflow.com/questions/30877328/access-binaries-inside-docker#comment49799635_30878942">Access binaries inside docker</a>) but I couldn't make work, where do I put those lines at <code>start.sh</code>?</p>
  
  <pre><code>meteorDockerId=docker ps | grep meteorhacks/meteord:base | awk '{print $1}'
  docker exec $meteorDockerId apt-get install graphicsmagick -y
  </code></pre>
  
  <p>That's my <code>start.sh</code>:</p>
  
  <pre><code>#!/bin/bash
  
  APPNAME=instagatas
  APP_PATH=/opt/$APPNAME
  BUNDLE_PATH=$APP_PATH/current
  ENV_FILE=$APP_PATH/config/env.list
  PORT=80
  USE_LOCAL_MONGO=0
  
  # remove previous version of the app, if exists
  docker rm -f $APPNAME
  
  # remove frontend container if exists
  docker rm -f $APPNAME-frontend
  
  set -e
  docker pull meteorhacks/meteord:base
  
  if [ "$USE_LOCAL_MONGO" == "1" ]; then
    docker run \
      -d \
      --restart=always \
      --publish=$PORT:80 \
      --volume=$BUNDLE_PATH:/bundle \
      --env-file=$ENV_FILE \
      --link=mongodb:mongodb \
      --hostname="$HOSTNAME-$APPNAME" \
      --env=MONGO_URL=mongodb://mongodb:27017/$APPNAME \
      --name=$APPNAME \
      meteorhacks/meteord:base
  else
    docker run \
      -d \
      --restart=always \
      --publish=$PORT:80 \
      --volume=$BUNDLE_PATH:/bundle \
      --hostname="$HOSTNAME-$APPNAME" \
      --env-file=$ENV_FILE \
      --name=$APPNAME \
      meteorhacks/meteord:base
  fi
  
  
    docker pull meteorhacks/mup-frontend-server:latest
    docker run \
      -d \
      --restart=always \
      --volume=/opt/$APPNAME/config/bundle.crt:/bundle.crt \
      --volume=/opt/$APPNAME/config/private.key:/private.key \
      --link=$APPNAME:backend \
      --publish=443:443 \
      --name=$APPNAME-frontend \
      meteorhacks/mup-frontend-server /start.sh
  </code></pre>