release: PicHost v1.0.0
Publish Docker image / build-and-push (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s

Multi-user image hosting with RBAC, upload preferences, and admin settings.
This commit is contained in:
O96u committed 2026-08-22 14:36:57 +08:00
commit bc4cba7e52
115 files changed
+26508

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
FROM node:22-alpine AS build
WORKDIR /app
# package-lock.json 由 npm 11 生成;镜像自带 npm 10,需对齐后再 npm ci
RUN npm install -g npm@11.12.1
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production \
NITRO_PORT=6892 \
DATA_DIR=/data
COPY --from=build /app/.output ./.output
EXPOSE 6892
VOLUME /data
CMD ["node", ".output/server/index.mjs"]