From fe58b43960f773088dc9274c81d63dd1b3431956 Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Fri, 8 Jan 2016 22:38:44 +0000 Subject: [PATCH] First commit --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1e77b75 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM rails + +WORKDIR /usr/src/app + +ENV DISCOURSE_VERSION 1.4.3 + +RUN apt-get update && apt-get install -y --no-install-recommends imagemagick libxml2 \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -L https://github.com/discourse/discourse/archive/v${DISCOURSE_VERSION}.tar.gz \ + | tar -xz -C /usr/src/app --strip-components 1 \ + && bundle config build.nokogiri --use-system-libraries \ + && bundle install --deployment --without test --without development + +ENV RAILS_ENV production +ENV DISCOURSE_DB_HOST postgres +ENV DISCOURSE_REDIS_HOST redis +ENV DISCOURSE_SERVE_STATIC_ASSETS true + +EXPOSE 3000 +CMD ["rails", "server"] -- GitLab