diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..13ea2722c772ba228f005a5cfbbc49cdbec00b38 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:lts-alpine as build-stage + +# make the 'app' folder the current working directory +WORKDIR /app + +# 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 . . +RUN npm run build + +# production stage +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /app/dist /usr/share/nginx/html +EXPOSE 8093 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file