FROM alpine:latest RUN apk add --no-cache git docker-cli curl WORKDIR /app # Clone the repo RUN git clone https://git.nauen-it.de/tobias/Pokemon-Type-Quiz.git . # Install node and npm RUN apk add --no-cache nodejs npm # Install dependencies and build RUN npm install && npm run build # Script to rebuild on changes COPY rebuild_docker.sh /rebuild_docker.sh RUN chmod +x /rebuild_docker.sh # Initial build CMD ["/rebuild_docker.sh"]