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