forked from bluesky-social/feed-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 1 KB
/
Dockerfile
File metadata and controls
34 lines (25 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:22
WORKDIR /app
COPY . .
RUN yarn install && yarn build
RUN rm -rf /build
RUN mkdir /data/
EXPOSE 3000
ENV FEEDGEN_PORT=3000
# Change this to use a different bind address
ENV FEEDGEN_LISTENHOST="0.0.0.0"
# Set to something like db.sqlite to store persistently
ENV FEEDGEN_SQLITE_LOCATION="/data/db.sqlite"
# FEEDGEN_SQLITE_LOCATION=":memory:"
# Don't change unless you're working in a different environment than the primary Bluesky network
ENV FEEDGEN_SUBSCRIPTION_ENDPOINT="wss://bsky.network"
# Hostname
ENV FEEDGEN_HOSTNAME="ec2-34-202-236-64.compute-1.amazonaws.com"
# Set this to the DID of the account you'll use to publish the feed
# Bluesky DID of benrogboe
ENV FEEDGEN_PUBLISHER_DID="did:plc:itd44pixnah6bg4ktopdnzjd"
# Only use this if you want a service did different from did:web
# FEEDGEN_SERVICE_DID="did:plc:abcde..."
# Delay between reconnect attempts to the firehose subscription endpoint (in milliseconds)
ENV FEEDGEN_SUBSCRIPTION_RECONNECT_DELAY=3000
CMD ["node", "/app/dist/index.js"]