FROM node:20.20-alpine3.23 AS build RUN corepack enable WORKDIR /app COPY ./service ./ RUN corepack prepare --activate RUN pnpm install --production --frozen-lockfile > /dev/null FROM node:20.20-alpine3.23 # Avoid zombie processes, handle signal forwarding RUN apk add --update dumb-init ENTRYPOINT ["dumb-init", "--"] WORKDIR /app COPY --from=build /app /app EXPOSE 3000 ENV PDS_PORT=3000 ENV NODE_ENV=production ENV UV_USE_IO_URING=0 CMD ["node", "--enable-source-maps", "index.js"] LABEL org.opencontainers.image.source=https://tangled.org/sullen.net/pds LABEL org.opencontainers.image.description="AT Protocol PDS" LABEL org.opencontainers.image.licenses=MIT