FROM --platform=linux/amd64 harbor.vimpelcom.ru/dockerhub/library/nginx:alpine

ARG DIST_DIR=./src/.vitepress/dist
ARG WROOT_DIR=/usr/share/nginx/html/docs

WORKDIR ${WROOT_DIR}

RUN rm -rf ./*
COPY ${DIST_DIR} ./

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
