-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (26 loc) · 1.69 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Dockerfile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sgertrud <msnazarow@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/06/24 03:36:49 by sgertrud #+# #+# #
# Updated: 2021/01/08 06:51:59 by sgertrud ### ########.fr #
# #
# **************************************************************************** #
FROM debian:buster
EXPOSE 80 443
RUN apt-get -y update && \
apt-get install -y nginx curl supervisor wget mariadb-server mariadb-client php-fpm && \
apt-get install -y php-common php-mbstring php-xmlrpc php-soap php-gd php-intl php-mysql php-cli php-ldap php-zip php-curl
WORKDIR /var/www/
RUN wget https://files.phpmyadmin.net/phpMyAdmin/5.0.2/phpMyAdmin-5.0.2-all-languages.tar.gz https://wordpress.org/latest.tar.gz
RUN tar -xvzf latest.tar.gz && tar -xvzf phpMyAdmin-5.0.2-all-languages.tar.gz && mv phpMyAdmin-5.0.2-all-languages wordpress/phpMyAdmin
COPY srcs/ .
RUN chmod +x *.sh
RUN mv nginx-selfsigned.key /etc/ssl/private/nginx-selfsigned.key && \
mv nginx-selfsigned.crt /etc/ssl/certs/nginx-selfsigned.crt && \
mv localhost.conf /etc/nginx/sites-available/default
RUN bash start.sh
CMD [ "bash", "run.sh" ]