-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.02 KB
/
Dockerfile
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
FROM php:7.2.21
# config installation de composer
ENV COMPOSER_VERSION=2.1.3 COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_PATH=/usr/local/bin
RUN apt-get update -yqq
RUN apt-get install -yqq git openssh-client rsync wget gnupg2 libxml2-dev libzip-dev zip unzip zlib1g-dev libpng-dev
RUN docker-php-ext-configure zip --with-libzip
RUN docker-php-ext-install bcmath soap zip
RUN docker-php-ext-install gd
# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=${COMPOSER_PATH} --filename=composer --version=${COMPOSER_VERSION}
# node, gulp, sass
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get install -yqq nodejs
RUN npm install -g gulp
RUN npm install -g node-sass
# yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -yqq
RUN apt-get install -yqq yarn
# create a user
RUN useradd --create-home --shell /bin/bash docker
WORKDIR /home/docker
USER docker