forked from LibreBooking/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·34 lines (29 loc) · 893 Bytes
/
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
FROM php:7.4-apache
ARG DB_HOST=mysql
ARG DB_USER=librebooking
ARG DB_PASSWORD
ARG DB_DATABASE=librebooking
ARG LB_ENV=production
ARG EMBED_MYSQL=true
ARG INSTALL_PASSWORD=install
ARG SCRIPT_URL=http://localhost:8080/
ENV DB_HOST=$DB_HOST
ENV DB_USER=$DB_USER
ENV DB_PASSWORD=$DB_PASSWORD
ENV DB_DATABASE=$DB_DATABASE
ENV LB_ENV=$LB_ENV
ENV EMBED_MYSQL=$EMBED_MYSQL
ENV INSTALL_PASSWORD=$INSTALL_PASSWORD
ENV SCRIPT_URL=$SCRIPT_URL
ENV ADMIN_EMAIL=$ADMIN_EMAIL
RUN mkdir /var/www/librebooking/
COPY . /var/www/librebooking/
COPY entrypoint.sh /
RUN sed -i "s#DocumentRoot /var/www/html#DocumentRoot /var/www/librebooking/Web#" /etc/apache2/sites-enabled/000-default.conf
RUN a2enmod rewrite
RUN docker-php-ext-install mysqli
WORKDIR /var/www/librebooking
RUN mkdir -p tpl_c tpl uploads
RUN chown -R www-data:www-data tpl_c tpl uploads
CMD /entrypoint.sh