Skip to content

Commit

Permalink
将多个build分步执行
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyq authored Jul 26, 2016
1 parent 4b81245 commit d9edf6a
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM ubuntu:14.04
MAINTAINER zhouyq@goodrain.com

ENV GOSU_BIN="gosu rain"
RUN echo "Asia/Shanghai" > /etc/timezone;dpkg-reconfigure -f noninteractive tzdata
RUN groupadd -r -g 200 discourse && useradd -r -u 200 -g discourse discourse

ENV GOSU_BIN="gosu discourse"
ENV APP_DIR="/app/discourse"
ENV PERMANENT_DIR="/data"
ENV BUILD_DIR="/tmp/build"
Expand All @@ -14,7 +17,26 @@ COPY build $BUILD_DIR
COPY usr /usr
COPY etc /etc

RUN $BUILD_DIR/build.sh
RUN $BUILD_DIR/build.sh system_init

RUN $BUILD_DIR/build.sh install_packages

RUN $BUILD_DIR/build.sh install_gosu

RUN $BUILD_DIR/build.sh install_libjemalloc

RUN $BUILD_DIR/build.sh install_gifsicle

RUN $BUILD_DIR/build.sh install_pngcrush

RUN $BUILD_DIR/build.sh install_pngquant

RUN $BUILD_DIR/build.sh install_ruby

RUN $BUILD_DIR/build.sh install_discourse

RUN $BUILD_DIR/build.sh install_nginx

RUN $BUILD_DIR/cleanup

VOLUME $PERMANENT_DIR
Expand Down

0 comments on commit d9edf6a

Please sign in to comment.