Add Dockerfile

This commit is contained in:
nemunaire 2020-11-15 17:28:35 +01:00
parent 96ed0d7787
commit 40d1e2ca1b
2 changed files with 16 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
Dockerfile
onyx2/cache/*.cache.php
onyx2/cache/signatures/*.sign
onyx2/log/*.log
onyx2/log/users/*.log
onyx2/modules/templates/cache/*
onyx2/modules/templates/compile/*

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM php:7.2-fpm-alpine
RUN apk add --no-cache libpng libpng-dev freetype freetype-dev && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr/include/ && \
docker-php-ext-install gd mysqli
COPY . /usr/src/hb-main/
RUN chmod 777 /usr/src/hb-main/onyx2/cache /usr/src/hb-main/onyx2/cache/signatures /usr/src/hb-main/onyx2/log /usr/src/hb-main/onyx2/log/users /usr/src/hb-main/onyx2/modules/templates/cache /usr/src/hb-main/onyx2/modules/templates/compile