2023-10-12 / syui

pds

bluesky(pds)をupdateした

$ git clone https://github.com/bluesky-social/atproto
$ git reset --hard 3b65224c8003f68892bc8434b0d47c7173554a53
$ vim Dockerfile
FROM node:18.17.1-buster
RUN mkdir -p /app
RUN mkdir -p /app/packages/pds/dist/images

WORKDIR /app
ADD ./ ./
RUN npm install -g pnpm
RUN make deps
RUN make build

RUN echo DB_POSTGRES_URL=postgres://${user}:${password}@0.0.0.0:5432/${db} >> .env
RUN cp -rf .env /app/packages/pds/.env
WORKDIR /app/packages/pds
# https://github.com/bluesky-social/atproto/pull/1198/files#diff-ea571f7816400e5a8a1f03b40b3a63316e0a1fc3abf4f1c937e7ee7a9682fca5L27
CMD ["node", "dist/bin.js"]
$ docker compose up