Repository: struts-site
Updated Branches:
  refs/heads/master 3931c4315 -> 270c9e770


Adds missing dependencies and cleanups


Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/a6b16f15
Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/a6b16f15
Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/a6b16f15

Branch: refs/heads/master
Commit: a6b16f153229dcdc65dbb3a89cd6112c2a6606e0
Parents: 3931c43
Author: Lukasz Lenart <lukasz.len...@gmail.com>
Authored: Mon Feb 8 08:18:50 2016 +0100
Committer: Lukasz Lenart <lukasz.len...@gmail.com>
Committed: Mon Feb 8 08:18:50 2016 +0100

----------------------------------------------------------------------
 docker/Dockerfile | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-site/blob/a6b16f15/docker/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9b4ec36..58738cf 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -4,23 +4,29 @@ LABEL Description="This image is used to support building 
Apache Struts main web
 RUN \
   apt-get update && \
   apt-get install -y \
+    make \
+    gcc \
+    sudo \
+    netcat \
+    iproute \
+    net-tools \
     vim \
     bzip2 \
-    gcc \
     git-core \
-    make \
     libssl-dev \
     libreadline-dev \
     zlib1g-dev \
     node \
-    sudo \
     curl && \
-    
+  apt-get clean && \
+
   addgroup --system --gid 1000 jekyll &&  \
   adduser --system --ingroup jekyll --uid 1000 --home /home/jekyll 
--disabled-password jekyll && \
   mkdir -p /srv/jekyll && \
   chown jekyll:jekyll /srv/jekyll && \
   echo "jekyll ALL=NOPASSWD:ALL" >> /etc/sudoers
+WORKDIR /srv/jekyll
+EXPOSE 4000
 USER jekyll
 RUN \
   cd && \
@@ -44,11 +50,8 @@ RUN \
   gem clean && gem install bundler --no-document && \
   
   sudo rm -rf /usr/lib/ruby/gems/*/cache/*.gem
-WORKDIR /srv/jekyll
-EXPOSE 4000
 ENV HOME /home/jekyll
-ENV HOSTNAME struts-jekyll
 ENV PATH ${PATH}:${HOME}/.rbenv/plugins/ruby-build/bin
 ENV PATH ${PATH}:${HOME}/.rbenv/bin
 ENV PATH ${PATH}:${HOME}/.rbenv/shims
-CMD ["bundle", "install"]
\ No newline at end of file
+CMD ["bundle", "exec", "jekyll", "serve", "--watch", "--trace", 
"--host=0.0.0.0"]
\ No newline at end of file

Reply via email to