forked from LibreBooking/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (21 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
24 lines (21 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:7-apache
# Copy the entrypoint program
COPY ./entrypoint.sh /usr/local/bin/
# Customize
ARG LB_RELEASE
RUN set -ex; \
# Install mysqli extension for php \
docker-php-ext-install -j$(nproc) mysqli; \
# Copy librebooking source code \
mkdir /usr/src/lb; \
curl \
--fail \
--silent \
--location https://github.com/LibreBooking/app/archive/refs/tags/${LB_RELEASE}.tar.gz \
| tar --extract --gzip --directory=/usr/src/lb --strip-components=1; \
# Make entrypoint executable \
chmod ugo+x /usr/local/bin/entrypoint.sh;
# Declarations
VOLUME /var/www/html
ENTRYPOINT ["entrypoint.sh"]
CMD ["apache2-foreground"]