Mirror from bluesky-social/pds
at main 827 B view raw
1FROM node:20.11-alpine3.18 as build 2 3RUN corepack enable 4 5# Move files into the image and install 6WORKDIR /app 7COPY ./service ./ 8RUN corepack prepare --activate 9RUN pnpm install --production --frozen-lockfile > /dev/null 10 11# Uses assets from build stage to reduce build size 12FROM node:20.11-alpine3.18 13 14RUN apk add --update dumb-init 15 16# Avoid zombie processes, handle signal forwarding 17ENTRYPOINT ["dumb-init", "--"] 18 19WORKDIR /app 20COPY --from=build /app /app 21 22EXPOSE 3000 23ENV PDS_PORT=3000 24ENV NODE_ENV=production 25# potential perf issues w/ io_uring on this version of node 26ENV UV_USE_IO_URING=0 27 28CMD ["node", "--enable-source-maps", "index.js"] 29 30LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pds 31LABEL org.opencontainers.image.description="AT Protocol PDS" 32LABEL org.opencontainers.image.licenses=MIT