Reduce docker image size (#394)

Reduce docker image size based on:  https://cadu.dev/reduce-your-docker-images-an-example-with-ruby/
This commit is contained in:
Cadu Ribeiro
2019-12-31 09:53:18 -03:00
committed by Sojan Jose
parent 7c4cc68561
commit 434d6c2656
6 changed files with 71 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
set -x
@@ -17,10 +17,9 @@ done
echo "Database ready to accept connections."
YARN="yarn check --integrity"
BUNDLE="bundle check"
until $YARN && $BUNDLE
until $BUNDLE
do
sleep 2;
done

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
rm -rf /app/tmp/pids/server.pid
@@ -17,4 +17,4 @@ done
echo "Ready to run webpack development server."
exec "$@"
exec "$@"