forked from camunda/camunda-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 795 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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