代码拉取完成,页面将自动刷新
# For local development purposes only
FROM httpd:alpine
RUN rm -r /usr/local/apache2/htdocs/*
COPY /build /usr/local/apache2/htdocs/
# Remove SSL requirement
RUN sed -i \
'/SERVER_PORT/d;/SERVER_NAME/d' \
/usr/local/apache2/htdocs/.htaccess
# Enable the rewrite module
RUN sed -i \
-e 's/^#\(LoadModule .*mod_rewrite.so\)/\1/' \
/usr/local/apache2/conf/httpd.conf
# Enable rewrites
RUN sed -i '/<Directory "\/usr\/local\/apache2\/htdocs">/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /usr/local/apache2/conf/httpd.conf
# Restart Apache server
# I'm not totally convinced we need to do this, but I don't think there's a down-side,
# and I had one situation where I needed to go do it manually after startup so 🤷🏼
RUN apachectl -k restart
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。