diff --git a/README.md b/README.md deleted file mode 100644 index 939fd17..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# diabets_app - diff --git a/client/dockerfile b/client/dockerfile index e69de29..b690995 100644 --- a/client/dockerfile +++ b/client/dockerfile @@ -0,0 +1,24 @@ +FROM node:lts-alpine as build-stage + +# make the 'app' folder the current working directory +WORKDIR /client + +# copy both 'package.json' and 'package-lock.json' (if available) +COPY package.json ./ + + +# install project dependencies +RUN npm install + +# copy project files and folders to the current working directory (i.e. 'app' folder) +COPY . . + + +# build app for production with minification +RUN npm run build + +# production stage +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /client/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/client/public/favicon.png b/client/public/favicon.png new file mode 100644 index 0000000..36b610c Binary files /dev/null and b/client/public/favicon.png differ diff --git a/client/public/index.html b/client/public/index.html index 4123528..239bee3 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -4,7 +4,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/client/src/App.vue b/client/src/App.vue index da96f5d..8a83a7e 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -2,7 +2,7 @@
diff --git a/client/src/assets/favicon.png b/client/src/assets/favicon.png new file mode 100644 index 0000000..36b610c Binary files /dev/null and b/client/src/assets/favicon.png differ diff --git a/client/src/components/Calc.vue b/client/src/components/Calc.vue index ac5e449..5557b8f 100644 --- a/client/src/components/Calc.vue +++ b/client/src/components/Calc.vue @@ -11,29 +11,29 @@
- + - + @@ -77,7 +77,7 @@ - +