Commit b1750af76288db8f10f9bdc23ab898d46282889e

Authored by George Vlahavas
1 parent b69cbed0a6

Add a startup script

Use it to set change the hostname to that provided by the APP_URL variable.

Showing 2 changed files with 5 additions and 1 deletions

api/Dockerfile View file @ b1750af
... ... @@ -50,5 +50,5 @@
50 50  
51 51 # Expose port 9000 and start php-fpm server
52 52 EXPOSE 9000
53   -CMD ["php-fpm"]
  53 +CMD ["./start.sh"]
api/start.sh View file @ b1750af
  1 +#!/bin/sh
  2 +
  3 +sed -i "s/localhost:5611/${APP_URL}/g" ./api/public/js/*
  4 +php-fpm