We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e099e3 commit 839d672Copy full SHA for 839d672
Dockerfile
@@ -15,4 +15,4 @@ COPY --from=builder ./src/out /www
15
HEALTHCHECK CMD nc -z localhost $PORT
16
ENV TENANT=tenant
17
# Create a basic webserver and run it until the container is stopped
18
-CMD echo "httpd started" && trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www/$TENANT -f & wait
+CMD echo "httpd started" && trap "exit 0;" TERM INT; if [ -d "/www/$TENANT" ]; then DIR=$TENANT; else DIR="tenant"; fi; httpd -v -p $PORT -h /www/$DIR -f & wait
0 commit comments