From f45367fac2b5b9405c23f6867c551962122bc970 Mon Sep 17 00:00:00 2001 From: PunKeel Date: Fri, 23 Dec 2016 18:56:49 +0100 Subject: [PATCH 1/2] Add a Dockerfile This is not a perfect Dockerfile, but is a perfect base for anyone willing to run PrivateBin inside a container. There are a lot of ways to improve it, first being "having configuration in environment variables". Anyway, this Dockerfile is great as a basis, and it is possible to "fork" the image and add our own config file into it. Another improvement might be "adding a docker-compose.yml full stack, with mysql+bin". Feel free to do it \o/ --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b0121340 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM php:apache + +RUN apt-get update && apt-get install -y \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng12-dev \ + wget \ + zip \ + unzip; \ + # We install and enable php-gd + docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/; \ + docker-php-ext-install -j$(nproc) gd; \ + + # We enable Apache's mod_rewrite + a2enmod rewrite + +COPY . . From 77f464f6509714e8f720e6dd959bc4a8de92195e Mon Sep 17 00:00:00 2001 From: PunKeel Date: Fri, 23 Dec 2016 20:01:17 +0100 Subject: [PATCH 2/2] Add .dockerignore --- .dockerignore | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..78442ed1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,18 @@ +# Documentation, might leak version number +CHANGELOG.md +LICENSE.md +CREDITS.md +INSTALL.md +README.md +doc/ + +# Dotfiles, pointless +.codeclimate.yml +.csslintrc +.editorconfig +.eslint* +.git* +.php_cs +.styleci.yml +.travis.yml +.github