forked from vedmant/running-time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (50 loc) · 1.68 KB
/
Dockerfile
File metadata and controls
65 lines (50 loc) · 1.68 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM php:7.2-fpm
# Get repository and install wget and vim
RUN apt-get update && apt-get install --no-install-recommends -y wget vim git unzip apt-transport-https gnupg
RUN apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen
# Install PHP extensions deps
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
zlib1g-dev \
libicu-dev \
unixodbc-dev \
libssl-dev \
g++
# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
mbstring \
pdo_mysql \
zip \
ftp \
&& docker-php-ext-enable \
opcache
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin \
--filename=composer
# Install supervisor
RUN apt-get install -y supervisor
# Install Node
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs
# Install Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y yarn
# Clean repository
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Set timezone
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN "date"
CMD mkdir -p /app
VOLUME /app
CMD chown -R www-data:www-data /app
WORKDIR /app
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]