Dockerfile in aptly_cli-0.2.9 vs Dockerfile in aptly_cli-0.3.0

- old
+ new

@@ -1,19 +1,29 @@ -FROM debian:jessie +FROM ruby:2.3 +MAINTAINER Zane Williamson <zane.williamson@gmail.com> -EXPOSE 8080 +# Install apt packages +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update -qq && \ + apt-get install -y -qq \ + less \ + locales && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* -RUN echo "deb http://repo.aptly.info/ squeeze main" > /etc/apt/sources.list.d/aptly.list; \ -apt-key adv --keyserver keys.gnupg.net --recv-keys 2A194991; \ -apt-get update; \ -apt-get install aptly curl xz-utils bzip2 gnupg wget graphviz -y --force-yes; \ -wget --quiet http://mirror.as24220.net/pub/ubuntu-archive/pool/main/z/zeitgeist/zeitgeist_0.9.0-1_all.deb -O /tmp/zeitgeist_0.9.0-1_all.deb; \ -wget --quiet http://mirror.as24220.net/pub/ubuntu-archive/pool/main/z/zsh/zsh_5.1.1-1ubuntu1_i386.deb -O /tmp/zsh_5.1.1-1ubuntu1_i386.deb +# Configure locale +ARG LOCALE="C.UTF-8" +RUN locale-gen "$LOCALE" && \ + dpkg-reconfigure locales +ENV LANG="$LOCALE" LC_ALL="$LOCALE" -ADD ./test/fixtures/aptly.conf /etc/aptly.conf +ADD . /app/ +ADD lib /app/lib -RUN aptly repo create testrepo -RUN aptly repo create testrepo20 -RUN aptly repo add testrepo /tmp/zeitgeist_0.9.0-1_all.deb -RUN aptly repo add testrepo20 /tmp/zsh_5.1.1-1ubuntu1_i386.deb +VOLUME /app +WORKDIR /app -CMD /usr/bin/aptly api serve +RUN gem install bundler && \ + bundle install && \ + rake install + +ENTRYPOINT ["aptly-cli"]