nextjs / Dockerfile
tmpexustreich's picture
Update Dockerfile
cee52cd verified
Raw
History Blame Contribute Delete
483 Bytes
FROM node
RUN apt-get update && apt-get install -y git curl
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
RUN export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install 22 \
&& node -v
WORKDIR /app
RUN git clone https://github.com/vercel/vercel.git
RUN mv vercel/examples/nextjs ./
WORKDIR /app/nextjs
RUN npm install @chakra-ui/react @emotion/react @emotion/styled framer-motion