forked from righttolearn/ddlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod.Dockerfile
More file actions
44 lines (36 loc) · 936 Bytes
/
prod.Dockerfile
File metadata and controls
44 lines (36 loc) · 936 Bytes
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
42
43
44
# PHP Version environment variable
ARG PHP_VERSION
FROM php:$PHP_VERSION-fpm
# Set working directory
WORKDIR /var/www/html
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
libicu-dev \
jpegoptim optipng pngquant gifsicle \
locales \
vim \
nano \
git \
curl \
wget \
unzip \
nodejs npm \
imagemagick \
ghostscript
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install extensions
RUN docker-php-ext-configure intl
RUN docker-php-ext-install pdo pdo_mysql zip exif pcntl intl
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Copy existing application directory permissions
COPY . /var/www/html
# Set ownership to www-data
RUN chown -R www-data:www-data \
/var/www/html/storage \
/var/www/html/bootstrap/cache