chore(reasonix): add Dockerfile, .dockerignore, refine compose.yml

This commit is contained in:
Gan, Jimmy
2026-07-11 05:26:06 +08:00
parent 9159363b93
commit a334f55575
3 changed files with 29 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:alpine AS build
RUN npm install -g reasonix@1.17.10
FROM node:alpine
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY --from=build /usr/local/bin/reasonix /usr/local/bin/reasonix
RUN addgroup -S reasonix && adduser -S reasonix -G reasonix
USER reasonix
WORKDIR /home/reasonix
EXPOSE 8787
ENTRYPOINT ["reasonix", "serve", "--addr", "0.0.0.0:8787", "--auth", "none"]