forked from suma-project/Suma
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 788 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
25
26
27
FROM php:8.1-apache
# Install dependencies
RUN apt-get update && apt-get install -y \
libzip-dev libonig-dev zip unzip curl default-mysql-client && \
docker-php-ext-install pdo_mysql mbstring zip && \
a2enmod rewrite remoteip && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
rm -rf /var/lib/apt/lists/*
# Copy local suma code into image at /app/suma
COPY --chown=www-data:www-data . /app/suma
# Set working dir
WORKDIR /app/suma
# Create web root dirs (will be symlinked)
RUN mkdir -p /var/www/html/suma/
# Entrypoint & startup script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 80
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]