Switched from Apache2 to Nginx
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,21 +1,3 @@
|
||||
# syntax=docker/dockerfile:1.3-labs
|
||||
ARG version=2.4.48-alpine
|
||||
FROM nginx:latest
|
||||
|
||||
FROM httpd:$version
|
||||
|
||||
LABEL version=1.0
|
||||
|
||||
COPY ./public_html/ /usr/local/apache2/htdocs/
|
||||
|
||||
# run web traffic over SSL/HTTPS
|
||||
|
||||
COPY ./cert/srv.crt /usr/local/apache2/conf/
|
||||
COPY ./cert/srv.key /usr/local/apache2/conf/
|
||||
|
||||
#RUN sed -i -e 's/^#\(Include .*httpd-ssl.conf\)/\1/' -e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' -e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' conf/httpd.conf
|
||||
|
||||
RUN rm /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
EXPOSE 443/tcp
|
||||
COPY ./yaaaw.conf /etc/nginx/conf.d/
|
||||
|
Reference in New Issue
Block a user