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
baa8edba
Commit
baa8edba
authored
8 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Fix all missing libraries
parent
3cdb3b42
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
+32
-2
32 additions, 2 deletions
Dockerfile
with
32 additions
and
2 deletions
Dockerfile
+
32
−
2
View file @
baa8edba
...
...
@@ -5,11 +5,41 @@ WORKDIR /usr/src/app
ENV
DISCOURSE_VERSION=1.6.0.beta10 \
RAILS_ENV=production \
RUBY_GC_MALLOC_LIMIT=90000000 \
RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 \
DISCOURSE_DB_HOST=postgres \
DISCOURSE_REDIS_HOST=redis \
DISCOURSE_SERVE_STATIC_ASSETS=true
DISCOURSE_SERVE_STATIC_ASSETS=true \
GIFSICLE_VERSION=1.87 \
PNGQUANT_VERSION=2.4.1
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
imagemagick libxml2
\
RUN
curl
--silent
--location
https://deb.nodesource.com/setup_4.x | bash -
\
&&
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
autoconf
\
ghostscript
\
gsfonts
\
imagemagick
\
jhead
\
jpegoptim
\
libbz2-dev
\
libfreetype6-dev
\
libjpeg-dev
\
libjpeg-turbo-progs
\
libtiff-dev
\
libxml2
\
nodejs
\
optipng
\
pkg-config
\
&&
cd
/tmp
\
&&
curl
-O
http://www.lcdf.org/gifsicle/gifsicle-
$GIFSICLE_VERSION
.tar.gz
\
&&
tar
zxf gifsicle-
$GIFSICLE_VERSION
.tar.gz
\
&&
cd
gifsicle-
$GIFSICLE_VERSION
\
&&
./configure
&&
make
install
&&
cd
..
\
&&
wget https://github.com/pornel/pngquant/archive/
$PNGQUANT_VERSION
.tar.gz
\
&&
tar
zxf
$PNGQUANT_VERSION
.tar.gz
\
&&
cd
pngquant-
$PNGQUANT_VERSION
\
&&
./configure
&&
make
&&
make
install
\
&&
npm
install
svgo uglify-js
-g
\
&&
rm
-fr
/tmp/
*
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
git clone
--branch
v
${
DISCOURSE_VERSION
}
https://github.com/discourse/discourse.git
.
\
...
...
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