Skip to content

Commit 839d672

Browse files
committed
use tenant folder by default
1 parent 6e099e3 commit 839d672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ COPY --from=builder ./src/out /www
1515
HEALTHCHECK CMD nc -z localhost $PORT
1616
ENV TENANT=tenant
1717
# 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
18+
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

Comments
 (0)