include weixin-ilink-gateway source

This commit is contained in:
mayunfei committed 2026-12-04 10:12:20 +08:00
1 parent 5f8428a318
commit 43a6f7b72b
51 files changed
+5351 -1

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
FROM oven/bun:1-alpine AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
COPY src/ ./src/
COPY tsconfig.json ./
RUN bun build --compile --minify src/index.ts --outfile server
FROM alpine:3.21
WORKDIR /app
RUN apk add --no-cache libstdc++ libgcc
COPY --from=build /app/server ./server
RUN adduser -D app && mkdir -p /app/data && chown -R app:app /app/data
USER app
ENV PORT=3000
EXPOSE 3000
VOLUME /app/data
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost:3000/status || exit 1
CMD ["./server"]