-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (34 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
39 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM php:5-apache-jessie
MAINTAINER Guillermo Valdes Lozano <guillermo@movimientolibre.com>
# Actualizar e instalar dependencias
RUN apt-get update && \
apt-get install \
libpq-dev \
postgresql-client \
mcrypt \
libmcrypt4 \
libmcrypt-dev \
libpng-dev \
libjpeg62-turbo-dev -qq -y
# Instalar para PHP soporte PostgreSQL y mcrypt
RUN docker-php-source extract && \
docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install gd && \
docker-php-ext-install pgsql && \
docker-php-ext-install mcrypt && \
docker-php-source delete
# Copiar nuestra propio php.ini
COPY php.ini /usr/local/etc/php/
# Debe modificar los permisos SELinux
# $ cd ~/Documentos/Docker/SmdDesarrolloWeb
# $ sudo chcon -R -t container_file_t .
# Agregar mi usuario y grupo
RUN groupadd -g 1000 guivaloz && \
useradd -u 1000 -g guivaloz -s /bin/bash -d /genesisphp -M guivaloz && \
gpasswd -a guivaloz www-data
# Copiar GenesisPHP
RUN mkdir /genesisphp
WORKDIR /genesisphp
COPY Demostracion Demostracion
COPY Eva Eva
COPY Tierra Tierra