FROM amazonlinux:2023.2.20231011.0 as base RUN dnf install vim git nodejs -y && npm install -g pnpm # Switch to the "user" user RUN useradd -m -u 1000 user RUN mkdir -p /CleanS2S && chown -R 1000:1000 /CleanS2S USER user RUN git clone https://github.com/opendilab/CleanS2S.git WORKDIR /CleanS2S/frontend_nextjs RUN pnpm install EXPOSE 7860 CMD ["pnpm", "dev", "--port", "7860"]