-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
43 lines (33 loc) · 1.39 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
32
33
34
35
36
37
38
39
40
41
42
FROM php:8.2-apache
MAINTAINER Alex Tselegidis (alextselegidis.com)
ARG VERSION="1.5.0"
ENV BASE_URL="http://localhost"
ENV LANGUAGE="english"
ENV DEBUG_MODE="FALSE"
ENV DB_HOST="db"
ENV DB_NAME="easyappointments"
ENV DB_USERNAME="root"
ENV DB_PASSWORD="secret"
ENV GOOGLE_SYNC_FEATURE=FALSE
ENV GOOGLE_PRODUCT_NAME=""
ENV GOOGLE_CLIENT_ID=""
ENV GOOGLE_CLIENT_SECRET=""
ENV GOOGLE_API_KEY=""
EXPOSE 80
WORKDIR /var/www/html
COPY ./assets/99-overrides.ini /usr/local/etc/php/conf.d
COPY ./assets/docker-entrypoint.sh /usr/local/bin
RUN apt-get update \
&& apt-get install -y libfreetype-dev libjpeg62-turbo-dev libpng-dev unzip wget nano sendmail \
&& curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
curl gd intl ldap mbstring mysqli xdebug odbc pdo pdo_mysql xml zip exif gettext bcmath csv event imap inotify mcrypt redis \
&& docker-php-ext-enable xdebug \
&& wget https://github.com/alextselegidis/easyappointments/releases/download/${VERSION}/easyappointments-${VERSION}.zip \
&& unzip easyappointments-${VERSION}.zip \
&& rm easyappointments-${VERSION}.zip \
&& echo "alias ll=\"ls -al\"" >> /root/.bashrc \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& chown -R www-data:www-data .
ENTRYPOINT ["docker-entrypoint.sh"]