-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (25 loc) · 1.03 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
# This file is a template, and might need editing before it works on your project.
FROM php:7.4-apache
ARG ENV_DBNAME=${ENV_DBNAME}
# Customize any core extensions here
#RUN apt-get update && apt-get install -y \
# libfreetype6-dev \
# libjpeg62-turbo-dev \
# libmcrypt-dev \
# libpng12-dev \
# && docker-php-ext-install -j$(nproc) iconv mcrypt \
# && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
# && docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-install pdo_mysql
RUN apt-get update && \
apt-get install -y git zip unzip && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl --silent --show-error https://getcomposer.org/installer | php
COPY . /var/www/html/
WORKDIR /var/www/html
COPY Config/config.php.example Config/config.php
RUN sed -i "s|localhost|srv-captain--database-db|g" Config/config.php
RUN sed -i "s|XXX|$ENV_DBNAME|g" Config/config.php
RUN php composer.phar install