Skip to content
Snippets Groups Projects
Commit fe58b439 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

First commit

parent 175d5f55
No related branches found
No related tags found
No related merge requests found
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment