Skip to content

Commit

Permalink
Change style of writing bash commands
Browse files Browse the repository at this point in the history
  • Loading branch information
michaloo committed Oct 17, 2014
1 parent 288cbf3 commit 0d98008
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@ FROM ubuntu:14.04
MAINTAINER Michal Raczka [email protected]

# install curl
RUN apt-get update && \
apt-get install -y curl
RUN apt-get update \
&& apt-get install -y curl

# install docker-gen
RUN curl -sL https://github.com/jwilder/docker-gen/releases/download/0.3.2/docker-gen-linux-amd64-0.3.2.tar.gz | \
tar -xz -C /usr/local/bin
RUN curl -sL https://github.com/jwilder/docker-gen/releases/download/0.3.2/docker-gen-linux-amd64-0.3.2.tar.gz \
| tar -xz -C /usr/local/bin

# install go-cron
RUN curl -sL https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz | \
tar -x -C /usr/local/bin

# install forego
# RUN curl -o /usr/local/bin/forego \
# -sL https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/forego && \
# chmod u+x /usr/local/bin/forego
RUN curl -sL https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz \
| tar -x -C /usr/local/bin

# copy project files
ADD . /app
Expand All @@ -34,6 +29,7 @@ RUN rm /etc/logrotate.d/* && \
ENV DOCKER_HOST unix:///var/run/docker.sock
ENV DOCKER_DIR /var/lib/docker/
ENV GOCRON_SCHEDULER 0 0 * * * *

ENV LOGROTATE_MODE daily
ENV LOGROTATE_ROTATE 3
ENV LOGROTATE_SIZE 512M
Expand Down

0 comments on commit 0d98008

Please sign in to comment.