mirror of
https://github.com/andrey271192/amnezia_web.git
synced 2026-09-20 14:41:59 +00:00
- POST /api/community/run-private-install fetches private install.sh and runs bash detached (202 Accepted) - Gated by ALLOW_COMMUNITY_GITHUB_ACTIVATION + AMNEZIA_EDITION=community + admin session - Log appended to /data/community-install-last.log; install bash bundled in Dockerfile Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
313 B
Docker
21 lines
313 B
Docker
FROM node:22-alpine
|
|
|
|
RUN apk add --no-cache docker-cli bash openssh-client sshpass
|
|
|
|
RUN mkdir -p /data && chmod 700 /data
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
RUN npm install --omit=dev
|
|
|
|
COPY server.js ./server.js
|
|
COPY public ./public
|
|
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3980
|
|
|
|
EXPOSE 3980
|
|
|
|
CMD ["node", "server.js"]
|