-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 954 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
FROM debian:buster
MAINTAINER lfallet <lfallet@student.42.fr>
RUN apt-get update && apt-get install -y procps nano nginx wget mariadb-server
# command line utility
# text file editor
# install web server
# install download tools
# install SGDB
RUN apt-get -y install php7.3-fpm php7.3-common php7.3-mysql php7.3-gmp php7.3-curl php7.3-intl php7.3-mbstring php7.3-xmlrpc php7.3-gd php7.3-xml php7.3-cli php7.3-zip php7.3-soap php7.3-imap
# install php/mysql
COPY ./srcs/start.sh ./
# copy the script to run the container inside the root of the container's file system
COPY ./srcs/autoindex.sh ./tmp/autoindex.sh
# copy the script to handle the autoindex
COPY ./srcs/nginx-conf ./tmp/nginx-conf
# copy the nginx's file configuration
COPY ./srcs/phpmyadmin.inc.php ./tmp/phpmyadmin.inc.php
# copy the phpmyadmin's file configuration
COPY ./srcs/wp-config.php ./tmp/wp-config.php
# copy the wordpress's file configuration
ENTRYPOINT ["bash", "start.sh"]