mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
Merge branch 'add-dockerfile' of https://github.com/PunKeel/PrivateBin into PunKeel-add-dockerfile
This commit is contained in:
commit
eca37c2184
18
.dockerignore
Normal file
18
.dockerignore
Normal file
|
@ -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
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -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 . .
|
Loading…
Reference in New Issue
Block a user