commit f0d76ef34d1cfe382bb8fe4b15de703e0c13daa9 Author: Cabillot Julien Date: Sat May 5 01:30:06 2018 +0200 first import diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab3b9f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM "ubuntu:18.04" +MAINTAINER "Julien Cabillot " + +RUN apt-get -qq update && \ + apt-get -qq --yes install ruby ruby-dev libxml2-dev && \ + gem install foodcritic && \ + # TODO: voir si on peut faire cela + #apt-get -qq --yes remove --purge libxml2-dev ruby-dev && \ + apt-get -qq --yes autoremove --purge && \ + apt-get -qq --yes clean all && \ + rm -rf "/usr/share/doc/*" \ + "/var/cache/*" \ + "/var/lib/apt/lists/*" \ + "/usr/src/*" \ + "/var/cache/*" \ + "/var/log/"{apt/*,dpkg.log} \ + "/var/www/html" \ + "/tmp/*" + +WORKDIR /data + +ENTRYPOINT [ "/usr/local/bin/foodcritic" ] diff --git a/README.md b/README.md new file mode 100644 index 0000000..6df1245 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +I don't use ruby:alpine because foodcritic needs libiconv-dev, only available on edge/testing.