Skip to content
Snippets Groups Projects
Dockerfile 806 B
Newer Older
Hakan EBABIL's avatar
Hakan EBABIL committed
FROM php:7.3-apache

# Update system
RUN apt-get update

# Install composer
ENV COMPOSER_HOME "/home/www-data/.composer"
ENV COMPOSER_AUTH "{ \"http-basic\": { \"php-packages.chargemap.com\": { \"username\": \"chargemap\", \"password\": \"Fy6Rys[WYNpzVkh;\" } } }"
RUN mkdir -p $COMPOSER_HOME && chmod -R 777 $COMPOSER_HOME && curl -sS https://getcomposer.org/installer | php \
  && chmod +x composer.phar && mv composer.phar /usr/local/bin/composer

# Install NPM
Hakan EBABIL's avatar
Hakan EBABIL committed
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
Hakan EBABIL's avatar
Hakan EBABIL committed
RUN apt-get update && apt-get install -y nodejs
Hakan EBABIL's avatar
Hakan EBABIL committed

# Install Sass
RUN npm install -g sass

RUN mkdir /srv/app
COPY vhost.conf /etc/apache2/sites-available/000-default.conf

RUN docker-php-ext-install pdo pdo_mysql bcmath && \
 chown -R www-data:www-data /srv/app && \
 a2enmod rewrite