diff --git a/Dockerfile b/Dockerfile index d60dc5a..3bf5827 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,8 @@ ENV RAILS_ENV production ENV RACK_ENV production ENV NODE_ENV production +ENV SECRET_KEY_BASE="08898973823f6f1d121ce30fb8adc1c559dcfc08f358cfc0298e4aad81b8c9d798e8249e3a4b26c04255cf8b2d71eaf8eda865d173ae3fe6fb1a599d1b1fa260" + RUN git clone https://github.com/snibox/snibox.git /app && cd /app && git reset --hard $GIT_HASH COPY . /app diff --git a/README.md b/README.md index f3a6816..3bd3745 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,7 @@ docker run -d --name snibox \ `DATABASE` - Defines sqlite3 database file location within container. _Default_: `/app/db/database/snibox.sqlite3` + +--- + +`SECRET_KEY_BASE` - Defines `secret_key_base` parameter for your Rails application. Default one is included into the image already, but general recommendation is to change it. \ No newline at end of file diff --git a/config/database.yml b/config/database.yml index 8b5ae3f..56175d6 100644 --- a/config/database.yml +++ b/config/database.yml @@ -2,4 +2,4 @@ production: adapter: sqlite3 pool: 5 timeout: 5000 - database: <%= ENV['DATABASE'] || "db/database/snibox.sqlite3" %> + database: <%= ENV['DATABASE'] || "db/database/snibox.sqlite3" %> \ No newline at end of file