From 9950de9c503d7afc94b665aae75671bcc200b5fb Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Wed, 27 Nov 2019 11:24:16 +0100 Subject: [PATCH] YoLo --- Dockerfile | 5 ++++- docker/start.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docker/start.sh 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