Apache config update
This commit is contained in:
parent
2a1bc88800
commit
c68bef9bea
|
|
@ -7,6 +7,7 @@ RUN apk update && \
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
|
bash \
|
||||||
# Init related
|
# Init related
|
||||||
tini \
|
tini \
|
||||||
openrc \
|
openrc \
|
||||||
|
|
@ -131,8 +132,8 @@ RUN (crontab -l; echo "") | crontab -
|
||||||
# Provide container inside image for data persistence
|
# Provide container inside image for data persistence
|
||||||
VOLUME ["/var/www"]
|
VOLUME ["/var/www"]
|
||||||
|
|
||||||
# Allow apache user login
|
# Change shell for apache user so that it can login
|
||||||
RUN sed -i "s/apache(.*)\/sbin\/nologin/apache\\1\/bin\/ash/g" /etc/passwd
|
RUN usermod -s bash apache
|
||||||
|
|
||||||
# vhost config
|
# vhost config
|
||||||
COPY vhost.conf /etc/apache2/conf.d/vhost.conf
|
COPY vhost.conf /etc/apache2/conf.d/vhost.conf
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue