Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
refactored using alpine base image
Browse files Browse the repository at this point in the history
  • Loading branch information
fermayo committed May 3, 2015
1 parent c421905 commit b44450e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM ubuntu:trusty
MAINTAINER info@tutum.co
FROM alpine
MAINTAINER support@tutum.co

RUN apt-get update && apt-get install -yq logrotate && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo "*/5 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" >> /etc/crontab
RUN apk --update add logrotate
RUN echo "*/5 * * * * /usr/sbin/logrotate /etc/logrotate.conf" >> /etc/crontabs/root
ADD logrotate.conf /etc/logrotate.conf

CMD ["cron", "-f"]
CMD ["crond", "-f"]

0 comments on commit b44450e

Please sign in to comment.