Page MenuHomeDevCentral

D3319.id.diff
No OneTemporary

D3319.id.diff

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,24 @@
+#
+# Nasqueron - ViMbAdmin
+#
+
+FROM nasqueron/nginx-php-fpm:novolume
+MAINTAINER Nasqueron Organisation <docker@nasqueron.org>
+
+#
+# Prepare the container
+#
+
+COPY files /
+
+WORKDIR /var/wwwroot/default
+
+RUN apt update && \
+ apt install -y libpq-dev && \
+ docker-php-ext-install pgsql && \
+ printf "\n" | pecl install memcache && \
+ git clone https://github.com/opensolutions/ViMbAdmin.git . && \
+ composer install --prefer-dist --no-dev -o && \
+ chown -R app:app /var/wwwroot/default && \
+ rm -r /var/lib/apt/lists/*
+
diff --git a/files/etc/nginx/sites-available/default b/files/etc/nginx/sites-available/default
new file mode 100644
--- /dev/null
+++ b/files/etc/nginx/sites-available/default
@@ -0,0 +1,23 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name _;
+
+ root /var/wwwroot/default/public;
+
+ index index.php index.html index.htm;
+
+ location / {
+ try_files $uri $uri/ /index.php?$args;
+ }
+
+ location ~ \.php$ {
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
+ include snippets/fastcgi-php.conf;
+ fastcgi_pass 127.0.0.1:9000;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+}
diff --git a/files/usr/local/etc/php/conf.d/memcache.ini b/files/usr/local/etc/php/conf.d/memcache.ini
new file mode 100644
--- /dev/null
+++ b/files/usr/local/etc/php/conf.d/memcache.ini
@@ -0,0 +1 @@
+extension=memcache.so

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 15:46 (2 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258542
Default Alt Text
D3319.id.diff (1 KB)

Event Timeline