-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (29 loc) · 1.17 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (29 loc) · 1.17 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
40
41
FROM webdevops/php-nginx:7.3
###################################################################
# Installing dependencies
###################################################################
ENV SRC /app
ENV PORT 8080
RUN apt-get update && apt-get install -y mysql-client libmagickwand-dev libpq-dev --no-install-recommends
RUN pecl install imagick
RUN docker-php-ext-enable imagick
RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install pgsql pdo_pgsql
###################################################################
# Environment variables of the proyect
###################################################################
ENV APPNAME "slim-scafold"
ENV ERROR_DETAILS "true"
###################################################################
# Configuring Nginx
###################################################################
COPY config/site.conf /opt/docker/etc/nginx/conf.d/site.conf
###################################################################
# Add aplication files
###################################################################
ADD . ${SRC}
WORKDIR ${SRC}
RUN composer install
RUN chmod -R 777 ${SRC}/public/
RUN chmod -R 777 ${SRC}
EXPOSE ${PORT}