1
0
hugo/content/blog/2023-10-12-pds.md

35 lines
751 B
Markdown
Raw Normal View History

2024-04-23 13:21:26 +00:00
+++
date = "2023-10-12"
tags = ["pds"]
title = "bluesky(pds)をupdateした"
slug = "pds"
+++
```sh
$ git clone https://github.com/bluesky-social/atproto
$ git reset --hard 3b65224c8003f68892bc8434b0d47c7173554a53
$ vim Dockerfile
```
```sh
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"]
```
```sh
$ docker compose up
```