diff --git a/Dockerfile b/Dockerfile index a9f1f881a..3ea2cf821 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,17 @@ WORKDIR /app # args ARG WAOS_VUE_app_title='WAOS Docker' +ENV WAOS_VUE_app_title $WAOS_VUE_app_title ARG WAOS_VUE_api_protocol='http' +ENV WAOS_VUE_api_protocol $WAOS_VUE_api_protocol ARG WAOS_VUE_api_host='localhost' +ENV WAOS_VUE_api_host $WAOS_VUE_api_host ARG WAOS_VUE_api_port='3000' +ENV WAOS_VUE_api_port $WAOS_VUE_api_port ARG WAOS_VUE_api_base='api' +ENV WAOS_VUE_api_base $WAOS_VUE_api_base ARG WAOS_VUE_cookie='waos' +ENV WAOS_VUE_cookie $WAOS_VUE_cookie # Install app dependencies & build COPY package*.json ./ diff --git a/hooks/build b/hooks/build new file mode 100644 index 000000000..20ee29eb8 --- /dev/null +++ b/hooks/build @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build -t $IMAGE_NAME --build-arg WAOS_VUE_app_title=$WAOS_VUE_app_title WAOS_VUE_api_protocol=$WAOS_VUE_api_protocol WAOS_VUE_api_host=$WAOS_VUE_api_host ENV WAOS_VUE_api_port=$WAOS_VUE_api_port WAOS_VUE_api_base=$WAOS_VUE_api_base WAOS_VUE_cookie=$WAOS_VUE_cookie . \ No newline at end of file