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 @@ - +