forked from MIKEINTOSHSYSTEMS/mikeintoshaiodashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (50 loc) · 1.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
################################################################################
# Base image
################################################################################
# Use an official PHP runtime as a parent image
#FROM php:7.4-apache
# Use an official PHP-FPM runtime as a parent image
FROM php:7.4-fpm
# Set the image name and tag as labels
LABEL maintainer="MIKEINTOSH SYSTEMS <[email protected]>"
LABEL image.name="mikeintosh-phpdashboard-app"
LABEL image.tag="latest"
# Set the working directory in the container
WORKDIR /var/www/html
# Copy application source code to the container
COPY analytics/ /var/www/html/analytics/
COPY app/ /var/www/html/app/
COPY assets/ /var/www/html/assets/
COPY backend/ /var/www/html/backend/
COPY dist/ /var/www/html/dist/
#COPY docker/ /var/www/html/docker/
COPY help/ /var/www/html/help/
COPY map_files/ /var/www/html/map_files/
COPY src/ /var/www/html/src/
COPY styles/ /var/www/html/styles/
COPY test/ /var/www/html/test/
# Copy additional files to the container
COPY _config.yml /var/www/html/
COPY compareData.html /var/www/html/
COPY demo.php /var/www/html/
COPY guide.html /var/www/html/
COPY index.php /var/www/html/
COPY main.php /var/www/html/
COPY postgre.php /var/www/html/
COPY script.js /var/www/html/
COPY style.css /var/www/html/
COPY test.html /var/www/html/
COPY test.php /var/www/html/
# Copy custom php.ini configuration
COPY config/php.ini /usr/local/etc/php/php.ini
# Install PHP extensions and other dependencies
RUN apt-get update && \
apt-get install -y libpng-dev && \
docker-php-ext-install pdo pdo_mysql gd
# Expose the port Apache listens on
#EXPOSE 80
# Expose the port PHP-FPM listens on
EXPOSE 9000
# Start Apache when the container runs
#CMD ["apache2-foreground"]
CMD ["php-fpm"]