This commit is contained in:
Kekskurse 2019-12-25 18:36:31 +01:00
parent f7bd710fc0
commit 88a8273ebc
3 changed files with 13 additions and 8 deletions

View File

@ -1,13 +1,18 @@
FROM node:lts
RUN npm install -g http-server
FROM node:lts AS source-code
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm install
RUN npm run build
FROM nginx:1.17
WORKDIR /usr/share/nginx/html
COPY --from=source-code /app/dist /usr/share/nginx/html
COPY docker/start.sh /start.sh
RUN chmod uog+rwx /start.sh
EXPOSE 8080
EXPOSE 80
CMD [ "/start.sh"]

View File

@ -1,2 +1,2 @@
docker build -t docker.keks.cloud/keksaccount/gui:latest .
docker push docker.keks.cloud/keksaccount/gui:latest
docker push docker.keks.cloud/keksaccount/gui:latest

View File

@ -1,3 +1,3 @@
#!/bin/sh
echo $VUE_APP_API_URL > dist/apiurl
http-server dist
echo $VUE_APP_API_URL > /usr/share/nginx/html/apiurl
nginx -g 'daemon off;'