diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..22d0d82f8095e9c0ed572776afb47f9ca293ce00 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +vendor diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f5a01e972589683da979a837898834c9720f5b07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +from ruby:2.6.6 +RUN gem install bundler +RUN apt-get update && apt-get -y install nodejs +COPY . /app +WORKDIR /app +RUN bundle install +ENTRYPOINT /app/entrypoint.sh diff --git a/README.md b/README.md index 7db80e4ca1bf849701dce58a63f09a102cb9f931..b02a112bc58429bbba2e01f266c94ad9740da49d 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,3 @@ -# README +# Annotot app -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... +This is a simple docker image to run an annotot server, it has not been tested yet and should not be considered stable diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000000000000000000000000000000000000..f2ceade395b859197fc20ea23bf8aeb67ab730ee --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/bash +./bin/rails db:migrate +./bin/rails server -b 0.0.0.0 diff --git a/vendor/.keep b/vendor/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000