Something went wrong. Try again.
Mirror from bluesky-social/pds github.com/bluesky-social/pds
Something went wrong. Try again.
pds-mirror Dockerfile
1234567891011121314151617181920212223242526272829303132333435363738394041FROM node:20.20-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.1 && 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:20.20-alpine3.22
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.js"]
LABEL org.opencontainers.image.source=https://github.com/bluesky-social/pdsLABEL org.opencontainers.image.description="AT Protocol PDS"LABEL org.opencontainers.image.licenses=MIT