Something went wrong. Try again.
Mirror from bluesky-social/pds github.com/bluesky-social/pds
Something went wrong. Try again.
pds-mirror Dockerfile
1.2 kB · 41 lines
Dockerfile
at monitoring
123456789101112131415161718192021222324252627282930313233343536373839404142# NOTE there is an additional build stage below that should matchFROM node:24.18-alpine3.23 AS build
RUN corepack enable
# Build goat binaryENV CGO_ENABLED=0ENV GODEBUG="netdns=go"WORKDIR /tmpRUN apk add --no-cache git goRUN git clone https://github.com/bluesky-social/goat.git && cd goat && git checkout v0.2.2 && go build -o /tmp/goat-build .
# Move files into the image and installWORKDIR /appCOPY ./service ./RUN corepack prepare --activateRUN pnpm install --production --frozen-lockfile > /dev/null
# Uses assets from build stage to reduce build sizeFROM node:24.18-alpine3.23
RUN apk add --update dumb-init
# Avoid zombie processes, handle signal forwardingENTRYPOINT ["dumb-init", "--"]
WORKDIR /appCOPY --from=build /app /appCOPY --from=build /tmp/goat-build /usr/local/bin/goat
EXPOSE 3000ENV PDS_PORT=3000ENV NODE_ENV=production# potential perf issues w/ io_uring on this version of nodeENV UV_USE_IO_URING=0
CMD ["node", "--enable-source-maps", "index.ts"]
LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pdsLABEL org.opencontainers.image.description="AT Protocol PDS"LABEL org.opencontainers.image.licenses=MIT