diff --git a/Dockerfile b/Dockerfile index 62b0633f..22c8d357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,8 @@ RUN npm install COPY . . RUN npm run build +COPY docker/start.sh /start.sh +RUN chmod uog+rwx /start.sh + EXPOSE 8080 -CMD [ "http-server", "dist" ] \ No newline at end of file +CMD [ "/start.sh"] diff --git a/docker/start.sh b/docker/start.sh new file mode 100644 index 00000000..a1930574 --- /dev/null +++ b/docker/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo $VUE_APP_API_URL > dist/apiurl +http-server dist