pds.Dockerfile
1FROM ghcr.io/bluesky-social/pds:0.4
2
3# 1 = bypass int validation for PDS_PORT so we can use unix sockets instead
4# 2 = x-forwarded-for hack because the entire js ecosystem can not handle unix sockets correctly (https://www.npmjs.com/package/trustproxy)
5RUN sed -i "s/common_1.envInt)('PDS_PORT/common_1.envStr)('PDS_PORT/" /app/node_modules/@atproto/pds/dist/config/env.js \
6 && sed -i "s/'trust proxy'/'trust proxy', (ip) => ip == undefined/" /app/node_modules/@atproto/pds/dist/index.js