Skip to content

Commit ad2a792

Browse files
committed
Latest Dockerfile for Apachewebserver on Ubuntu
1 parent d9df2b4 commit ad2a792

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
FROM ubuntu-ssh:16.04
1+
FROM ubuntu:18.04
22
LABEL maintainer="[email protected]"
33

4-
RUN apt-get update \
5-
&& apt-get install -y apache2
6-
RUN apt-get install -y apache2-utils
4+
RUN apt-get update && apt-get install -y apache2 && apt-get install -y apache2-utils
75
RUN apt-get clean
86

7+
ENV APACHE_RUN_USER www-data
8+
ENV APACHE_RUN_GROUP www-data
9+
ENV APACHE_LOG_DIR /var/log/apache2
10+
911
COPY html/* /var/www/html/
1012

1113
WORKDIR /var/www/html
14+
1215
CMD ["apachectl", "-D", "FOREGROUND"]
1316
EXPOSE 80

0 commit comments

Comments
 (0)