diff --git a/Dockerfile b/Dockerfile index 879295b..8f90833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,5 @@ WORKDIR /code COPY . /code RUN bundle install -RUN cd public -RUN yarn install EXPOSE 4567 \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..2256a0b --- /dev/null +++ b/run.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +echo '--- run yarn install' +yarn --cwd public/ + +echo '--- run bundle install' +bundle install + +echo '--- create docker image and up it' +sudo docker-compose up -d --build \ No newline at end of file