-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 831 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 831 Bytes
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
FROM webdevops/php-apache:8.0
LABEL maintainer="lars@lehmann.wtf"
USER root
RUN apt-get update -y
RUN apt-get upgrade -y
ENV APACHE_DOCUMENT_ROOT=/var/www/html
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
WORKDIR /var/www/html
ADD . / /var/www/html/
RUN chown -R www-data:www-data /var/www
# Expose ports
EXPOSE 80
RUN ln -s /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-enabled/
RUN rm /var/www/html/index.html
RUN service apache2 restart
# docker build -t n2web-arm:latest.arm -f ./Dockerfile-arm .
# docker build -t n2web:latest -f ./Dockerfile .
#docker push vanderlars/notion2web:latest;
#docker push vanderlars/notion2web-arm:latest;