manual install apache
This commit is contained in:
parent
e31b7b3e60
commit
50fc8010b7
2 changed files with 15 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
@ -14,14 +14,14 @@ COPY --from=buildJS /build /build
|
|||
RUN cd /build/public/API && composer install
|
||||
|
||||
# Prepare Webserver
|
||||
FROM httpd:alpine
|
||||
FROM alpine:alpine
|
||||
|
||||
# |--------------------------------------------------------------------------
|
||||
# | install dependencies
|
||||
# |--------------------------------------------------------------------------
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
apk add php8-apache2 php8-mysqli curl
|
||||
apk add apache2 php8-apache2 php8-mysqli curl
|
||||
|
||||
# |--------------------------------------------------------------------------
|
||||
# | copy website from node build
|
||||
|
@ -43,3 +43,9 @@ HEALTHCHECK CMD curl --fail http://localhost || exit 1
|
|||
# | expose http port
|
||||
# |--------------------------------------------------------------------------
|
||||
EXPOSE 80
|
||||
|
||||
# |--------------------------------------------------------------------------
|
||||
# | set entrypoint
|
||||
# |--------------------------------------------------------------------------
|
||||
COPY httpd-foreground /usr/local/bin/
|
||||
CMD ["httpd-foreground"]
|
7
httpd-foreground
Executable file
7
httpd-foreground
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Apache gets grumpy about PID files pre-existing
|
||||
rm -f /usr/local/apache2/logs/httpd.pid
|
||||
|
||||
exec httpd -DFOREGROUND "$@"
|
Loading…
Reference in a new issue