docker/Dockerfile.grove-webblame
View source
3e3af551# Grove Web UI Dockerfile
3e3af552FROM node:22-alpine AS builder
3e3af553
3e3af554WORKDIR /app
3e3af555COPY web/package.json web/package-lock.json* ./
3e3af556RUN npm install
3e3af557
3e3af558COPY web/ ./
25f3eee9RUN rm -f .env.local
0d3340510
f0bb19211ARG GROVE_HUB_API_URL=http://localhost:4001
f0bb19212ARG GROVE_API_URL=http://localhost:4000
0d3340513ENV GROVE_HUB_API_URL=$GROVE_HUB_API_URL
f0bb19214ENV GROVE_API_URL=$GROVE_API_URL
0d3340515
3e3af5516RUN npm run build
3e3af5517
3e3af5518FROM node:22-alpine AS runner
3e3af5519WORKDIR /app
3e3af5520
3e3af5521COPY --from=builder /app/.next/standalone ./
3e3af5522COPY --from=builder /app/.next/static ./.next/static
3e3af5523COPY --from=builder /app/public ./public
3e3af5524
3e3af5525ENV PORT=3000
32ba63d26ENV GROVE_HUB_API_URL=http://hub-api:4000
3e3af5527EXPOSE 3000
3e3af5528
0b4b58229COPY --from=builder /app/docker-entrypoint.sh ./docker-entrypoint.sh
0b4b58230RUN chmod +x docker-entrypoint.sh
0b4b58231
0b4b58232CMD ["./docker-entrypoint.sh"]