Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discourse
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beorn Facchini
discourse
Commits
6169e7cf
Commit
6169e7cf
authored
8 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
One layer for env
parent
210ad469
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-7
6 additions, 7 deletions
Dockerfile
with
6 additions
and
7 deletions
Dockerfile
+
6
−
7
View file @
6169e7cf
...
...
@@ -2,7 +2,12 @@ FROM rails:4.1
WORKDIR
/usr/src/app
ENV
DISCOURSE_VERSION 1.4.7
ENV
DISCOURSE_VERSION=1.4.7 \
RAILS_ENV=production \
RUBY_GC_MALLOC_LIMIT=90000000 \
DISCOURSE_DB_HOST=postgres \
DISCOURSE_REDIS_HOST=redis \
DISCOURSE_SERVE_STATIC_ASSETS=true
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
imagemagick libxml2
\
&&
rm
-rf
/var/lib/apt/lists/
*
...
...
@@ -12,11 +17,5 @@ RUN curl -L https://github.com/discourse/discourse/archive/v${DISCOURSE_VERSION}
&&
bundle config build.nokogiri
--use-system-libraries
\
&&
bundle
install
--deployment
--without
test
--without
development
ENV
RAILS_ENV production
ENV
RUBY_GC_MALLOC_LIMIT 90000000
ENV
DISCOURSE_DB_HOST postgres
ENV
DISCOURSE_REDIS_HOST redis
ENV
DISCOURSE_SERVE_STATIC_ASSETS true
EXPOSE
3000
CMD
["rails", "server"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment