diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..c2e49678 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:18 AS build + +WORKDIR /opt/node_app + +COPY package.json yarn.lock ./ +RUN yarn --ignore-optional --network-timeout 600000 + +ARG NODE_ENV=production + +COPY . . +RUN yarn build + +FROM nginx:1.21-alpine + +COPY --from=build /opt/node_app/dist /opt/node_app/index.html /usr/share/nginx/html/ + + +HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1 diff --git a/index.html b/index.html new file mode 100644 index 00000000..337ef442 --- /dev/null +++ b/index.html @@ -0,0 +1,53 @@ + + +
+ +