-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (37 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
41 lines (37 loc) · 877 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
FROM php:7.3-fpm-alpine
# Install packages
RUN apk --update --no-cache add wget \
curl \
git \
grep \
build-base \
libmemcached-dev \
libmcrypt-dev \
libxml2-dev \
imagemagick-dev \
pcre-dev \
libtool \
make \
autoconf \
g++ \
cyrus-sasl-dev \
libgsasl-dev \
supervisor \
nano \
libpng-dev \
libzip-dev \
nodejs \
npm \
openldap-dev
# Install composer (for now)
COPY ./docker/app/composer-installer.sh /usr/local/bin/composer-install
RUN chmod +x /usr/local/bin/composer-install
RUN composer-install
RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer
RUN composer --version
# Cleanup
RUN rm -R /var/cache/apk \
&& apk del --purge autoconf g++ make
# Copy files to working directory
RUN mkdir -p /var/www/html && chown -R www-data:www-data /var/www/html