fix: IndeedHub demo builds via git clone in Dockerfile
No submodule needed — the Dockerfile clones the IndeedHub repo directly during build. Works with Portainer without any manual steps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
02264a572f
commit
3461c97fcd
@@ -0,0 +1,19 @@
|
||||
# IndeedHub demo — clone, build, and serve in one step
|
||||
# No submodule or local source needed
|
||||
FROM node:20-alpine AS builder
|
||||
RUN apk add --no-cache git
|
||||
WORKDIR /app
|
||||
RUN git clone --depth 1 https://git.tx1138.com/lfg2025/indeehub.git .
|
||||
RUN npm ci
|
||||
ENV VITE_USE_MOCK_DATA=false
|
||||
ENV VITE_INDEEHUB_API_URL=/api
|
||||
ENV VITE_INDEEHUB_CDN_URL=/storage
|
||||
ENV VITE_NOSTR_RELAYS=""
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
RUN apk add --no-cache curl
|
||||
COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
EXPOSE 7777
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user