-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
62 lines (36 loc) · 1.16 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
62
#FROM ubuntu:focal
FROM ubuntu:focal
#https://hub.docker.com/_/ubuntu/
#ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND noninteractive
ENV TZ=America/El_Salvador
# File Author / Maintainer
MAINTAINER huezohuezo1990
# Set the timezone.
ENV TZ=America/El_Salvador
RUN apt-get update
RUN apt-get install -y tzdata
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
RUN echo $TZ > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
# Update the repository sources list
RUN apt-get update
# Install and run apache
RUN apt-get install -y apache2 && apt-get clean
# Install nano
RUN apt-get install -y nano && apt-get clean
# Install net-tools + curl
RUN apt-get install -y net-tools curl && apt-get clean
# ping
RUN apt install -y iputils-ping && apt-get clean
# Reenviar registros de solicitudes y errores
# al recolector de registros de Docker
RUN ln -sf /dev/stdout /var/log/apache2/access.log
RUN ln -sf /dev/stderr /var/log/apache2/error.log
#ENTRYPOINT ["/usr/sbin/apache2", "-k", "start"]
#ENV APACHE_RUN_USER www-data
#ENV APACHE_RUN_GROUP www-data
#ENV APACHE_LOG_DIR /var/log/apache2
EXPOSE 80
EXPOSE 443
CMD apachectl -D FOREGROUND